/external/chromium_org/ash/display/ |
D | display_layout.cc | 29 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 …]
|
D | display_layout_store.cc | 25 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 …]
|
D | display_layout_store.h | 21 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_;
|
D | display_layout.h | 24 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);
|
D | screen_position_controller_unittest.cc | 36 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()
|
D | mouse_cursor_event_filter.cc | 62 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()
|
D | mouse_cursor_event_filter_unittest.cc | 73 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()
|
D | display_manager_unittest.cc | 650 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 …]
|
D | display_controller_unittest.cc | 166 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 …]
|
D | display_manager.cc | 237 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 …]
|
D | display_manager.h | 90 const DisplayLayout& layout, 129 DisplayLayout GetCurrentDisplayLayout(); 137 const DisplayLayout& layout_relative_to_primary); 310 const DisplayLayout& layout,
|
D | root_window_transformers_unittest.cc | 185 DisplayLayout display_layout(DisplayLayout::BOTTOM, 50); in TEST_F()
|
D | display_change_observer_chromeos.cc | 99 DisplayLayout layout = Shell::GetInstance()->display_manager()-> in GetStateForDisplayIds()
|
/external/chromium_org/chrome/browser/extensions/api/system_display/ |
D | display_info_provider_chromeos.cc | 102 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 …]
|
D | display_info_provider_chromeos_unittest.cc | 283 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/ |
D | display_preferences_unittest.cc | 79 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 …]
|
D | display_preferences.h | 14 struct DisplayLayout; 33 void SetCurrentDisplayLayout(const ash::DisplayLayout& layout); 43 const ash::DisplayLayout& layout);
|
D | display_preferences.cc | 88 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/ |
D | layout.h | 16 enum DisplayLayout { enum 29 UI_EXPORT DisplayLayout GetDisplayLayout();
|
D | layout.cc | 70 DisplayLayout GetDisplayLayout() { in GetDisplayLayout()
|
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/ |
D | display_options_handler.cc | 247 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/ |
D | extended_desktop_unittest.cc | 37 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/ |
D | immersive_fullscreen_controller_unittest.cc | 314 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/ |
D | workspace_layout_manager_unittest.cc | 135 DisplayLayout layout(DisplayLayout::TOP, 0); in TEST_F()
|
/external/chromium_org/ash/wm/dock/ |
D | docked_window_layout_manager_unittest.cc | 534 DisplayLayout layout(DisplayLayout::BOTTOM, 0); in TEST_P()
|