HomeSort by relevance Sort by last modified time
    Searched defs:work_area (Results 1 - 25 of 47) sorted by null

1 2

  /external/chromium_org/ash/
dip_unittest.cc 43 gfx::Rect work_area = display.work_area(); local
44 EXPECT_EQ("0,0 1000x853", work_area.ToString());
45 EXPECT_EQ("0,0,47,0", display.bounds().InsetsFrom(work_area).ToString());
60 work_area = display_2x.work_area();
61 EXPECT_EQ("0,0 1000x853", work_area.ToString());
62 EXPECT_EQ("0,0,47,0", display_2x.bounds().InsetsFrom(work_area).ToString());
68 display_2x.bounds().InsetsFrom(work_area).height(),
  /external/chromium_org/ash/keyboard_overlay/
keyboard_overlay_delegate_unittest.cc 51 gfx::Rect work_area = Shell::GetScreen()->GetPrimaryDisplay().work_area(); local
53 EXPECT_EQ(work_area.CenterPoint().x(), bounds.CenterPoint().x());
54 EXPECT_EQ(work_area.bottom(), bounds.bottom());
  /external/chromium_org/chrome/browser/ui/app_list/
app_list_positioner.cc 21 gfx::Rect work_area = display_.work_area(); local
22 work_area.Subtract(rect);
23 display_.set_work_area(work_area);
30 gfx::Rect work_area = display_.work_area(); local
31 work_area.Inset(left, top, right, bottom);
32 display_.set_work_area(work_area);
66 const gfx::Rect& work_area = display_.work_area(); local
90 const gfx::Rect& work_area = display_.work_area(); local
118 const gfx::Rect& work_area = display_.work_area(); local
143 const gfx::Rect& work_area = display_.work_area(); local
175 const gfx::Rect& work_area = display_.work_area(); local
    [all...]
  /external/chromium_org/chrome/browser/ui/views/app_list/linux/
app_list_linux.cc 22 const gfx::Rect work_area = display.work_area(); local
29 if (work_area.y() - display_bounds.y() > winning_margin) {
30 winning_margin = work_area.y() - display_bounds.y();
34 if (work_area.x() - display_bounds.x() > winning_margin) {
35 winning_margin = work_area.x() - display_bounds.x();
39 if (display_bounds.right() - work_area.right() > winning_margin) {
40 winning_margin = display_bounds.right() - work_area.right();
44 if (display_bounds.bottom() - work_area.bottom() > winning_margin) {
45 winning_margin = display_bounds.bottom() - work_area.bottom()
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/system_display/
display_info_provider.cc 36 const gfx::Rect& work_area = display.work_area(); local
46 unit->work_area.left = work_area.x();
47 unit->work_area.top = work_area.y();
48 unit->work_area.width = work_area.width();
49 unit->work_area.height = work_area.height()
    [all...]
  /external/chromium_org/chrome/browser/ui/panels/
panel_resize_controller.cc 124 gfx::Rect work_area = panel_manager_->display_settings_provider()-> local
127 mouse_location.y() < work_area.y()) {
128 new_height -= work_area.y() - new_y;
docked_panel_collection.h 104 gfx::Rect work_area() const { return work_area_; } function in class:DockedPanelCollection
display_settings_provider.cc 81 gfx::Rect work_area = display.work_area(); local
82 int system_menu_height = work_area.y() - display_area.y();
90 return gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area();
107 return display.work_area();
detached_panel_collection.cc 41 gfx::Rect work_area = local
45 panel->LimitSizeToWorkArea(work_area);
52 if (bounds.right() > work_area.right())
53 bounds.set_x(work_area.right() - bounds.width());
54 if (bounds.bottom() > work_area.bottom())
55 bounds.set_y(work_area.bottom() - bounds.height());
57 if (bounds.x() < work_area.x())
58 bounds.set_x(work_area.x());
59 if (bounds.y() < work_area.y())
60 bounds.set_y(work_area.y())
275 gfx::Rect work_area = local
285 gfx::Rect work_area = local
    [all...]
panel_manager.cc 209 int PanelManager::GetMaxPanelWidth(const gfx::Rect& work_area) const {
210 return static_cast<int>(work_area.width() * kPanelMaxWidthFactor);
213 int PanelManager::GetMaxPanelHeight(const gfx::Rect& work_area) const {
214 return static_cast<int>(work_area.height() * kPanelMaxHeightFactor);
240 gfx::Rect work_area = local
243 gfx::Size max_size(GetMaxPanelWidth(work_area), GetMaxPanelHeight(work_area));
267 bounds.AdjustToFit(work_area);
375 gfx::Rect work_area = local
378 work_area.bottom() - panel->GetBounds().y()
    [all...]
  /external/chromium_org/ash/wm/
lock_layout_manager_unittest.cc 128 gfx::Rect work_area = local
130 window->SetBounds(work_area);
132 EXPECT_EQ(work_area.ToString(), window->GetBoundsInScreen().ToString());
163 gfx::Rect work_area = local
165 maximized_window->SetBounds(work_area);
167 EXPECT_NE(work_area.ToString(),
172 work_area =
174 fullscreen_window->SetBounds(work_area);
175 EXPECT_NE(work_area.ToString(),
266 gfx::Rect work_area local
    [all...]
toplevel_window_event_handler_unittest.cc 311 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
312 target.get()).work_area();
314 // Drag further than work_area bottom.
315 DragFromCenterBy(target.get(), 100, work_area.height());
318 // Size should have increased by 100, work_area.height() - target->bounds.y()
320 gfx::Size(200, work_area.height() - target->bounds().y()).ToString(),
326 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
327 target.get()).work_area();
329 // Drag further than work_area bottom.
330 DragFromCenterBy(target.get(), -30, work_area.height())
342 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
389 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
    [all...]
default_state.cc 153 } else if (stored_display_state_.work_area() != current_display.work_area()) {
201 gfx::Rect work_area = local
214 (window->bounds().height() == work_area.height() &&
215 window->bounds().y() == work_area.y())) {
220 work_area.y(),
222 work_area.height()));
234 gfx::Rect work_area =
238 (window->bounds().width() == work_area.width() &&
239 window->bounds().x() == work_area.x()))
    [all...]
system_gesture_event_filter_unittest.cc 535 gfx::Rect work_area = local
536 Shell::GetScreen()->GetDisplayNearestWindow(root_window).work_area();
537 int drag_x = work_area.x() + 20 - points[0].x();
563 gfx::Rect work_area = local
564 Shell::GetScreen()->GetDisplayNearestWindow(root_window).work_area();
565 int drag_x = work_area.right() - 20 - points[0].x();
window_animations.cc 494 gfx::Rect work_area = local
495 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area();
496 int ltr_adjusted_x = base::i18n::IsRTL() ? work_area.right() : work_area.x();
499 return gfx::Rect(ltr_adjusted_x, work_area.bottom(), 0, 0);
501 return gfx::Rect(ltr_adjusted_x, work_area.y(), 0, 0);
503 return gfx::Rect(work_area.x(), work_area.y(), 0, 0);
505 return gfx::Rect(work_area.right(), work_area.y(), 0, 0)
    [all...]
window_resizer.cc 142 gfx::Rect work_area = local
143 Shell::GetScreen()->GetDisplayNearestWindow(GetTarget()).work_area();
150 work_area.Union(dock_layout->docked_bounds());
151 work_area = ScreenUtil::ConvertRectFromScreen(GetTarget()->parent(),
152 work_area);
155 new_bounds.right() < work_area.x() + kMinimumOnScreenArea) {
156 int delta = work_area.x() + kMinimumOnScreenArea - new_bounds.right();
158 } else if (new_bounds.x() > work_area.right() - kMinimumOnScreenArea) {
159 int width = new_bounds.right() - work_area.right() +
161 new_bounds.set_x(work_area.right() - kMinimumOnScreenArea)
    [all...]
  /external/chromium_org/ash/wm/workspace/
workspace_event_handler_unittest.cc 93 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
94 window.get()).work_area();
113 EXPECT_EQ(work_area.y(), bounds_in_screen.y());
114 EXPECT_EQ(work_area.height(), bounds_in_screen.height());
134 EXPECT_EQ(work_area.x(), bounds_in_screen.x());
135 EXPECT_EQ(work_area.width(), bounds_in_screen.width());
151 gfx::Rect work_area2 = ScreenUtil::GetSecondaryDisplay().work_area();
200 window.get()).work_area();
240 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
241 window.get()).work_area();
264 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
    [all...]
  /external/chromium_org/chrome/browser/ui/views/app_list/win/
app_list_win_unittest.cc 68 const gfx::Rect& work_area = display_.work_area(); local
75 work_area.x(), work_area.y(), kTaskbarSize, work_area.height());
79 gfx::Rect(work_area.x() + work_area.width() - kTaskbarSize,
80 work_area.y(),
82 work_area.height());
86 work_area.x(), work_area.y(), work_area.width(), kTaskbarSize)
    [all...]
  /external/chromium_org/chrome/browser/ui/window_sizer/
window_sizer_common_unittest.cc 103 const gfx::Rect& work_area) {
105 display.set_work_area(work_area);
142 const gfx::Rect& work_area,
146 persistent_work_area_ = work_area;
189 const gfx::Rect& work_area,
204 sp->SetPersistentState(bounds, work_area, show_state_persisted, true);
221 const gfx::Rect& work_area,
228 monitor1_bounds, monitor1_work_area, monitor2_bounds, bounds, work_area,
240 gfx::Rect work_area = display_config; local
245 sp->SetPersistentState(bounds, work_area, show_state_persisted, true)
    [all...]
  /external/chromium_org/chrome/browser/ui/ash/multi_user/
user_switch_animator_chromeos.cc 85 gfx::Rect work_area = gfx::Screen::GetScreenFor(window)-> local
86 GetDisplayNearestWindow(window).work_area();
87 bounds.Intersect(work_area);
88 return work_area == bounds;
  /external/chromium_org/chrome/browser/ui/ash/
window_positioner_unittest.cc 153 const gfx::Rect work_area = local
154 Shell::GetScreen()->GetPrimaryDisplay().work_area();
157 window()->SetBounds(work_area);
163 EXPECT_EQ(gfx::Rect(work_area.x() + grid_size_, work_area.y() + grid_size_,
168 EXPECT_EQ(gfx::Rect(work_area.x() + 2 * grid_size_,
169 work_area.y() + 2 * grid_size_,
174 window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width() - 1,
175 work_area.y() + popup_position.height() - 1,
176 work_area.width()
214 const gfx::Rect work_area = local
269 const gfx::Rect work_area = local
    [all...]
  /external/chromium_org/ui/gfx/
display.h 21 // |bounds()| and |work_area| will return values in DIP coordinate
64 const Rect& work_area() const { return work_area_; } function in class:gfx::Display
65 void set_work_area(const Rect& work_area) { work_area_ = work_area; }
  /external/chromium_org/ash/ime/
candidate_window_view.cc 55 gfx::Rect work_area = gfx::Screen::GetNativeScreen()-> variable
56 GetDisplayNearestWindow(parent_).work_area();
57 if (bounds.right() > work_area.right())
58 bounds.set_x(work_area.right() - bounds.width());
59 if (bounds.x() < work_area.x())
60 bounds.set_x(work_area.x());
  /external/chromium_org/ash/system/web_notification/
web_notification_tray_unittest.cc 322 gfx::Rect work_area = GetPopupWorkArea(); local
329 EXPECT_GT(work_area.size().GetArea(), work_area_with_tray.size().GetArea());
336 EXPECT_GT(work_area.size().GetArea(),
345 EXPECT_GT(work_area.size().GetArea(),
353 EXPECT_EQ(work_area.ToString(), GetPopupWorkArea().ToString());
359 gfx::Rect work_area = GetPopupWorkArea(); local
370 EXPECT_LT(work_area.size().GetArea(), work_area_auto_hidden.size().GetArea());
376 EXPECT_EQ(work_area.ToString(), work_area_auto_shown.ToString());
421 gfx::Rect work_area = GetPopupWorkArea(); local
455 EXPECT_EQ(work_area.ToString(), GetPopupWorkArea().ToString())
467 gfx::Rect work_area = GetPopupWorkArea(); local
    [all...]
  /external/chromium_org/ash/wm/dock/
docked_window_layout_manager_unittest.cc 188 gfx::Rect work_area = local
189 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area();
194 dx += work_area.x() - initial_location_in_screen.x();
196 dx += work_area.right() - 1 - initial_location_in_screen.x();
413 gfx::Rect work_area = local
414 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
417 int gap3 = work_area.bottom() - w2->GetBoundsInScreen().bottom();
447 gfx::Rect work_area = local
448 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
449 int gap1 = w2->GetBoundsInScreen().y() - work_area.y()
483 gfx::Rect work_area = local
550 gfx::Rect work_area = local
737 gfx::Rect work_area = local
799 gfx::Rect work_area = local
828 gfx::Rect work_area = local
    [all...]

Completed in 432 milliseconds

1 2