Home
last modified time | relevance | path

Searched refs:DisplayLayout (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/ash/display/
Ddisplay_layout.cc29 typedef std::map<DisplayLayout::Position, std::string> PositionToStringMap;
33 DisplayLayout::TOP, "top", in GetPositionToStringMap()
34 DisplayLayout::BOTTOM, "bottom", in GetPositionToStringMap()
35 DisplayLayout::RIGHT, "right", in GetPositionToStringMap()
36 DisplayLayout::LEFT, "left"); in GetPositionToStringMap()
41 DisplayLayout::Position* field) { in GetPositionFromString()
48 std::string GetStringFromPosition(DisplayLayout::Position position) { in GetStringFromPosition()
64 DisplayLayout DisplayLayout::FromInts(int position, int offsets) { in FromInts()
65 return DisplayLayout(static_cast<Position>(position), offsets); in FromInts()
68 DisplayLayout::DisplayLayout() in DisplayLayout() function in ash::DisplayLayout
[all …]
Ddisplay_layout_store.cc25 default_display_layout_.position = DisplayLayout::TOP; in DisplayLayoutStore()
27 default_display_layout_.position = DisplayLayout::BOTTOM; in DisplayLayoutStore()
29 default_display_layout_.position = DisplayLayout::RIGHT; in DisplayLayoutStore()
31 default_display_layout_.position = DisplayLayout::LEFT; in DisplayLayoutStore()
40 void DisplayLayoutStore::SetDefaultDisplayLayout(const DisplayLayout& layout) { in SetDefaultDisplayLayout()
49 const DisplayLayout& layout) { in RegisterLayoutForDisplayIdPair()
53 DisplayLayout DisplayLayoutStore::GetRegisteredDisplayLayout( in GetRegisteredDisplayLayout()
55 std::map<DisplayIdPair, DisplayLayout>::const_iterator iter = in GetRegisteredDisplayLayout()
61 DisplayLayout DisplayLayoutStore::ComputeDisplayLayoutForDisplayIdPair( in ComputeDisplayLayoutForDisplayIdPair()
63 DisplayLayout layout = GetRegisteredDisplayLayout(pair); in ComputeDisplayLayoutForDisplayIdPair()
[all …]
Ddisplay_layout_store.h21 const DisplayLayout& default_display_layout() const { in default_display_layout()
24 void SetDefaultDisplayLayout(const DisplayLayout& layout);
29 const DisplayLayout& layout);
33 DisplayLayout GetRegisteredDisplayLayout(const DisplayIdPair& pair);
38 DisplayLayout ComputeDisplayLayoutForDisplayIdPair(
55 DisplayLayout CreateDisplayLayout(const DisplayIdPair& display_pair);
58 DisplayLayout default_display_layout_;
61 std::map<DisplayIdPair, DisplayLayout> paired_layouts_;
Ddisplay_layout.h24 struct ASH_EXPORT DisplayLayout { struct
36 static DisplayLayout FromInts(int position, int offsets);
38 DisplayLayout();
39 DisplayLayout(Position position, int offset);
42 DisplayLayout Invert() const WARN_UNUSED_RESULT;
45 static bool ConvertFromValue(const base::Value& value, DisplayLayout* layout);
46 static bool ConvertToValue(const DisplayLayout& layout, base::Value* value);
51 base::JSONValueConverter<DisplayLayout>* converter);
Dscreen_position_controller_unittest.cc36 void SetSecondaryDisplayLayout(DisplayLayout::Position position) { in SetSecondaryDisplayLayout()
37 DisplayLayout layout = in SetSecondaryDisplayLayout()
105 SetSecondaryDisplayLayout(DisplayLayout::RIGHT); in TEST_F()
113 SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); in TEST_F()
121 SetSecondaryDisplayLayout(DisplayLayout::LEFT); in TEST_F()
129 SetSecondaryDisplayLayout(DisplayLayout::TOP); in TEST_F()
138 SetSecondaryDisplayLayout(DisplayLayout::RIGHT); in TEST_F()
150 SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); in TEST_F()
158 SetSecondaryDisplayLayout(DisplayLayout::LEFT); in TEST_F()
166 SetSecondaryDisplayLayout(DisplayLayout::TOP); in TEST_F()
Dmouse_cursor_event_filter.cc62 DisplayLayout::Position position = Shell::GetInstance()-> in ShowSharedEdgeIndicator()
64 if (position == DisplayLayout::TOP || position == DisplayLayout::BOTTOM) in ShowSharedEdgeIndicator()
180 DisplayLayout::Position position = Shell::GetInstance()-> in UpdateHorizontalIndicatorWindowBounds()
190 position == DisplayLayout::TOP ? in UpdateHorizontalIndicatorWindowBounds()
197 position == DisplayLayout::TOP ? in UpdateHorizontalIndicatorWindowBounds()
209 DisplayLayout::Position position = Shell::GetInstance()-> in UpdateVerticalIndicatorWindowBounds()
217 int dst_x = position == DisplayLayout::LEFT ? in UpdateVerticalIndicatorWindowBounds()
226 position == DisplayLayout::LEFT ? in UpdateVerticalIndicatorWindowBounds()
Dmouse_cursor_event_filter_unittest.cc73 DisplayLayout::RIGHT, in TEST_F()
117 DisplayLayout::RIGHT, in TEST_F()
147 DisplayLayout::RIGHT, in TEST_F()
242 DisplayLayout layout(DisplayLayout::RIGHT, 0); in TEST_F()
297 DisplayLayout layout(DisplayLayout::LEFT, 0); in TEST_F()
325 DisplayLayout layout(DisplayLayout::TOP, 0); in TEST_F()
343 layout.position = DisplayLayout::BOTTOM; in TEST_F()
366 DisplayLayout(DisplayLayout::RIGHT, 0)); in TEST_F()
Ddisplay_manager_unittest.cc650 DisplayLayout layout = layout_store->default_display_layout(); in TEST_F()
651 layout.position = DisplayLayout::LEFT; in TEST_F()
1064 DisplayLayout(DisplayLayout::RIGHT, 0).Invert().ToString()); in TEST_F()
1066 DisplayLayout(DisplayLayout::RIGHT, 100).Invert().ToString()); in TEST_F()
1068 DisplayLayout(DisplayLayout::RIGHT, -50).Invert().ToString()); in TEST_F()
1071 DisplayLayout(DisplayLayout::LEFT, 0).Invert().ToString()); in TEST_F()
1073 DisplayLayout(DisplayLayout::LEFT, 90).Invert().ToString()); in TEST_F()
1075 DisplayLayout(DisplayLayout::LEFT, -60).Invert().ToString()); in TEST_F()
1078 DisplayLayout(DisplayLayout::TOP, 0).Invert().ToString()); in TEST_F()
1080 DisplayLayout(DisplayLayout::TOP, 80).Invert().ToString()); in TEST_F()
[all …]
Ddisplay_controller_unittest.cc166 void SetSecondaryDisplayLayoutAndOffset(DisplayLayout::Position position, in SetSecondaryDisplayLayoutAndOffset()
168 DisplayLayout layout(position, offset); in SetSecondaryDisplayLayoutAndOffset()
174 void SetSecondaryDisplayLayout(DisplayLayout::Position position) { in SetSecondaryDisplayLayout()
178 void SetDefaultDisplayLayout(DisplayLayout::Position position) { in SetDefaultDisplayLayout()
180 SetDefaultDisplayLayout(DisplayLayout(position, 0)); in SetDefaultDisplayLayout()
339 SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); in TEST_F()
350 SetSecondaryDisplayLayout(DisplayLayout::LEFT); in TEST_F()
361 SetSecondaryDisplayLayout(DisplayLayout::TOP); in TEST_F()
372 SetSecondaryDisplayLayoutAndOffset(DisplayLayout::RIGHT, 300); in TEST_F()
382 SetSecondaryDisplayLayoutAndOffset(DisplayLayout::RIGHT, 490); in TEST_F()
[all …]
Ddisplay_manager.cc237 const DisplayLayout& layout, in UpdateDisplayBoundsForLayoutById()
264 DisplayLayout DisplayManager::GetCurrentDisplayLayout() { in GetCurrentDisplayLayout()
273 DisplayLayout layout = in GetCurrentDisplayLayout()
301 const DisplayLayout& layout_relative_to_primary) { in SetLayoutForCurrentDisplays()
308 DisplayLayout to_set = pair.first == primary.id() ? in SetLayoutForCurrentDisplays()
311 DisplayLayout current_layout = in SetLayoutForCurrentDisplays()
322 const DisplayLayout layout = GetCurrentDisplayLayout(); in SetLayoutForCurrentDisplays()
775 DisplayLayout layout = layout_store_->GetRegisteredDisplayLayout( in GetPrimaryDisplayCandidate()
973 DisplayLayout layout = in UpdateSecondaryDisplayBoundsForLayout()
1002 const DisplayLayout& layout, in UpdateDisplayBoundsForLayout()
[all …]
Ddisplay_manager.h90 const DisplayLayout& layout,
129 DisplayLayout GetCurrentDisplayLayout();
137 const DisplayLayout& layout_relative_to_primary);
310 const DisplayLayout& layout,
Droot_window_transformers_unittest.cc185 DisplayLayout display_layout(DisplayLayout::BOTTOM, 50); in TEST_F()
Ddisplay_change_observer_chromeos.cc99 DisplayLayout layout = Shell::GetInstance()->display_manager()-> in GetStateForDisplayIds()
/external/chromium_org/chrome/browser/extensions/api/system_display/
Ddisplay_info_provider_chromeos.cc102 ash::DisplayLayout GetLayoutForRectangles(const gfx::Rect& reference, in GetLayoutForRectangles()
124 ash::DisplayLayout::Position position; in GetLayoutForRectangles()
126 position = is_bottom_right ? ash::DisplayLayout::RIGHT : in GetLayoutForRectangles()
127 ash::DisplayLayout::TOP; in GetLayoutForRectangles()
130 is_bottom_right ? ash::DisplayLayout::BOTTOM : ash::DisplayLayout::LEFT; in GetLayoutForRectangles()
139 position = ash::DisplayLayout::BOTTOM; in GetLayoutForRectangles()
142 position = ash::DisplayLayout::TOP; in GetLayoutForRectangles()
147 position = ash::DisplayLayout::RIGHT; in GetLayoutForRectangles()
150 position = ash::DisplayLayout::LEFT; in GetLayoutForRectangles()
154 if (position == ash::DisplayLayout::LEFT || in GetLayoutForRectangles()
[all …]
Ddisplay_info_provider_chromeos_unittest.cc283 ash::DisplayLayout::FromInts(ash::DisplayLayout::LEFT, -40)); in TEST_F()
293 ash::DisplayLayout::FromInts(ash::DisplayLayout::TOP, 40)); in TEST_F()
303 ash::DisplayLayout::FromInts(ash::DisplayLayout::BOTTOM, 80)); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/display/
Ddisplay_preferences_unittest.cc79 ash::DisplayLayout::Position layout, in StoreDisplayLayoutPrefForName()
83 ash::DisplayLayout display_layout(layout, offset); in StoreDisplayLayoutPrefForName()
95 if (ash::DisplayLayout::ConvertToValue(display_layout, layout_value.get())) in StoreDisplayLayoutPrefForName()
101 ash::DisplayLayout::Position layout, in StoreDisplayLayoutPrefForPair()
109 ash::DisplayLayout::Position layout, in StoreDisplayLayoutPrefForSecondary()
157 StoreDisplayLayoutPrefForPair(id1, id2, ash::DisplayLayout::TOP, 20); in TEST_F()
158 StoreDisplayLayoutPrefForPair(id1, dummy_id, ash::DisplayLayout::LEFT, 30); in TEST_F()
194 ash::DisplayLayout layout(ash::DisplayLayout::TOP, 10); in TEST_F()
197 id1, dummy_id, ash::DisplayLayout(ash::DisplayLayout::LEFT, 20)); in TEST_F()
213 ash::DisplayLayout stored_layout; in TEST_F()
[all …]
Ddisplay_preferences.h14 struct DisplayLayout;
33 void SetCurrentDisplayLayout(const ash::DisplayLayout& layout);
43 const ash::DisplayLayout& layout);
Ddisplay_preferences.cc88 ash::DisplayLayout layout; in LoadDisplayLayouts()
89 if (!ash::DisplayLayout::ConvertFromValue(it.value(), &layout)) { in LoadDisplayLayouts()
152 const ash::DisplayLayout& display_layout) { in StoreDisplayLayoutPref()
165 if (ash::DisplayLayout::ConvertToValue(display_layout, layout_value.get())) in StoreDisplayLayoutPref()
176 ash::DisplayLayout display_layout = in StoreCurrentDisplayLayoutPrefs()
276 void SetCurrentDisplayLayout(const ash::DisplayLayout& layout) { in SetCurrentDisplayLayout()
298 const ash::DisplayLayout& layout) { in StoreDisplayLayoutPrefForTest()
/external/chromium_org/ui/base/
Dlayout.h16 enum DisplayLayout { enum
29 UI_EXPORT DisplayLayout GetDisplayLayout();
Dlayout.cc70 DisplayLayout GetDisplayLayout() { in GetDisplayLayout()
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
Ddisplay_options_handler.cc247 const ash::DisplayLayout layout = in SendDisplayInfo()
266 ash::DisplayLayout::FromInts(position, offset)); in OnFadeOutForDisplayLayoutFinished()
305 DCHECK_LE(ash::DisplayLayout::TOP, layout); in HandleDisplayLayout()
306 DCHECK_GE(ash::DisplayLayout::LEFT, layout); in HandleDisplayLayout()
/external/chromium_org/ash/
Dextended_desktop_unittest.cc37 void SetSecondaryDisplayLayout(DisplayLayout::Position position) { in SetSecondaryDisplayLayout()
38 DisplayLayout layout = in SetSecondaryDisplayLayout()
343 SetSecondaryDisplayLayout(DisplayLayout::LEFT); in TEST_F()
364 SetSecondaryDisplayLayout(DisplayLayout::LEFT); in TEST_F()
645 SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); in TEST_F()
/external/chromium_org/ash/wm/
Dimmersive_fullscreen_controller_unittest.cc314 ash::DisplayLayout display_layout(ash::DisplayLayout::RIGHT, 0); in TEST_F()
481 ash::DisplayLayout display_layout(ash::DisplayLayout::TOP, 0); in TEST_F()
/external/chromium_org/ash/wm/workspace/
Dworkspace_layout_manager_unittest.cc135 DisplayLayout layout(DisplayLayout::TOP, 0); in TEST_F()
/external/chromium_org/ash/wm/dock/
Ddocked_window_layout_manager_unittest.cc534 DisplayLayout layout(DisplayLayout::BOTTOM, 0); in TEST_P()

12