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

1 2 3 4

  /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/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/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/ui/gfx/
display_unittest.cc 15 EXPECT_EQ("0,0 100x100", display.work_area().ToString());
19 EXPECT_EQ("3,4 90x80", display.work_area().ToString());
23 EXPECT_EQ("13,24 40x30", display.work_area().ToString());
26 EXPECT_EQ("13,24 190x180", display.work_area().ToString());
29 EXPECT_EQ("14,23 190x192", display.work_area().ToString());
36 EXPECT_EQ("10,10 80x80", display.work_area().ToString());
41 EXPECT_EQ("10,10 50x50", display.work_area().ToString());
46 EXPECT_EQ("10,10 80x80", display.work_area().ToString());
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/wm/
window_positioner.cc 83 gfx::Rect work_area = gfx::Rect(window->parent()->bounds().size()); local
84 work_area.Inset(Shell::GetScreen()->GetDisplayMatching(
86 return work_area;
92 // Move the given |bounds| on the available |work_area| in the direction
95 bool MoveRectToOneSide(const gfx::Rect& work_area,
99 if (work_area.right() > bounds->right()) {
100 bounds->set_x(work_area.right() - bounds->width());
104 if (work_area.x() < bounds->x()) {
105 bounds->set_x(work_area.x());
117 const gfx::Rect& work_area,
166 gfx::Rect work_area = GetWorkAreaForWindowInParent(window); local
263 gfx::Rect work_area = screen->GetDisplayNearestWindow(target).work_area(); local
296 gfx::Rect work_area = screen->GetDisplayNearestWindow(target).work_area(); local
341 gfx::Rect work_area = GetWorkAreaForWindowInParent(added_window); local
367 gfx::Rect work_area = GetWorkAreaForWindowInParent(added_window); local
416 const gfx::Rect work_area = display.work_area(); local
450 const gfx::Rect work_area = window && window->IsVisible() ? local
    [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...]
window_positioner.h 98 const gfx::Rect& work_area,
103 const gfx::Rect& work_area);
107 const gfx::Rect &work_area,
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...]
  /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/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/ui/window_sizer/
window_sizer.cc 46 gfx::Rect* work_area,
80 work_area->SetRect(work_area_left, work_area_top,
253 gfx::Rect work_area = screen_->GetDisplayMatching(*bounds).work_area(); local
255 bounds->AdjustToFit(work_area);
300 gfx::Rect work_area = display.work_area(); local
304 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050);
305 int default_height = work_area.height() - 2 * kWindowTilePixels;
318 work_area.width() > kMinScreenWidthForWindowHalving)
350 gfx::Rect work_area = display.work_area(); local
    [all...]
window_sizer_common_unittest.h 58 const gfx::Rect& work_area,
96 // none. For all these states the |bounds| and |work_area| get used, for the
102 const gfx::Rect& work_area,
115 // none. For all these states the |bounds| and |work_area| get used, for the
121 const gfx::Rect& work_area,
  /external/chromium_org/chrome/browser/ui/panels/
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...]
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();
stacked_panel_collection.cc 37 gfx::Rect work_area = panel_manager_->display_settings_provider()-> local
44 if (enclosing_bounds.height() > work_area.height()) {
45 int needed_space = enclosing_bounds.height() - work_area.height();
51 if (common_width > work_area.width())
52 common_width = work_area.width();
55 if (common_x + common_width > work_area.right())
56 common_x = work_area.right() - common_width;
57 if (common_x < work_area.x())
58 common_x = work_area.x();
62 if (start_y + total_height > work_area.bottom()
751 gfx::Rect work_area = GetWorkArea(); local
762 gfx::Rect work_area = GetWorkArea(); local
774 gfx::Rect work_area = GetWorkArea(); local
    [all...]
panel_drag_controller.cc 288 gfx::Rect work_area = panel_manager_->display_settings_provider()-> local
291 target_position.y() < work_area.y()) {
292 target_position.set_y(work_area.y());
314 gfx::Rect dock_work_area = panel_manager_->docked_collection()->work_area();
342 gfx::Rect dock_work_area = panel_manager_->docked_collection()->work_area();
614 gfx::Rect work_area = panel_manager_->display_settings_provider()-> local
616 if (abs(target_position->x() - work_area.x()) <
618 target_position->set_x(work_area.x());
621 if (abs(work_area.right() - target_position->x() - width) <
623 target_position->set_x(work_area.right() - width)
    [all...]
  /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/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/views/message_center/
web_notification_tray.cc 74 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area(); local
75 work_area.Inset(kScreenEdgePadding, kScreenEdgePadding);
80 if (work_area.height() < screen_bounds.height()) {
81 if (work_area.y() > screen_bounds.y())
85 if (work_area.width() < screen_bounds.width()) {
86 if (work_area.x() > screen_bounds.x())
112 Alignment GetAnchorAlignment(const gfx::Rect& work_area, gfx::Point corner) {
113 gfx::Point center = work_area.CenterPoint();
303 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area() 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...]
  /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/ui/message_center/views/
message_popup_collection.cc 340 void MessagePopupCollection::ComputePopupAlignment(gfx::Rect work_area,
345 alignment_ = work_area.y() > screen_bounds.y() ? POPUP_ALIGNMENT_TOP
356 ((work_area.x() > screen_bounds.x() && work_area.y() == screen_bounds.y())
528 work_area_ = display.work_area();
554 void MessagePopupCollection::SetDisplayInfo(const gfx::Rect& work_area,
556 if (work_area_ == work_area)
559 work_area_ = work_area;
560 ComputePopupAlignment(work_area, screen_bounds);
571 SetDisplayInfo(display.work_area(), display.bounds())
    [all...]
  /external/chromium_org/ash/wm/workspace/
workspace_layout_manager_unittest.cc 383 gfx::Rect work_area(
384 Shell::GetScreen()->GetPrimaryDisplay().work_area());
385 EXPECT_EQ(work_area.ToString(), window->GetBoundsInScreen().ToString());
458 gfx::Size work_area(
459 Shell::GetScreen()->GetPrimaryDisplay().work_area().size());
461 100, 101, work_area.width() + 1, work_area.height() + 2);
464 EXPECT_EQ(gfx::Rect(gfx::Point(100, 101), work_area).ToString(),
470 EXPECT_EQ(gfx::Rect(gfx::Point(100, 101), work_area).ToString(),
669 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow local
    [all...]
workspace_window_resizer.cc 555 gfx::Rect work_area(ScreenUtil::GetDisplayWorkAreaBoundsInParent(
560 int end = PrimaryAxisCoordinate(work_area.right(), work_area.bottom());
778 gfx::Rect work_area = local
780 display.work_area());
785 int max_y = work_area.bottom() - std::min(kMinOnscreenHeight,
789 } else if (bounds->y() <= work_area.y()) {
792 bounds->set_y(work_area.y());
798 if (display.work_area().Contains(last_mouse_location_in_screen))
799 StickToWorkAreaOnMove(work_area, sticky_size, bounds)
    [all...]

Completed in 673 milliseconds

1 2 3 4