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

1 2 3 4 5

  /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);
62 const gfx::Rect& work_area = display_.work_area(); local
86 const gfx::Rect& work_area = display_.work_area(); local
114 const gfx::Rect& work_area = display_.work_area(); local
139 const gfx::Rect& work_area = display_.work_area(); local
171 const gfx::Rect& work_area = display_.work_area(); local
    [all...]
  /external/chromium_org/chrome/browser/ui/ash/
window_positioner_unittest.cc 154 const gfx::Rect work_area = local
155 Shell::GetScreen()->GetPrimaryDisplay().work_area();
158 window()->SetBounds(work_area);
164 EXPECT_EQ(gfx::Rect(work_area.x() + grid_size_, work_area.y() + grid_size_,
169 EXPECT_EQ(gfx::Rect(work_area.x() + 2 * grid_size_,
170 work_area.y() + 2 * grid_size_,
175 window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width() - 1,
176 work_area.y() + popup_position.height() - 1,
177 work_area.width()
215 const gfx::Rect work_area = local
270 const gfx::Rect work_area = local
    [all...]
  /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/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/chrome/browser/ui/
window_sizer.cc 28 gfx::Rect* work_area) const {
63 work_area->SetRect(work_area_left, work_area_top,
201 gfx::Rect work_area = monitor_info_provider_->GetPrimaryMonitorWorkArea(); local
205 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050);
206 int default_height = work_area.height() - 2 * kWindowTilePixels;
219 work_area.width() > kMinScreenWidthForWindowHalving) {
223 default_width = static_cast<int>(work_area.width() / 2. -
226 default_bounds->SetRect(kWindowTilePixels + work_area.x(),
227 kWindowTilePixels + work_area.y(),
235 gfx::Rect work_area = monitor_info_provider_->GetWorkAreaAt(i) local
274 gfx::Rect work_area = local
    [all...]
window_sizer_mac.mm 54 gfx::Rect work_area = ConvertCoordinateSystem([match_screen visibleFrame]);
55 return gfx::Point(work_area.x() - bounds.x(), work_area.y() - bounds.y());
122 NSRect work_area = [[NSScreen mainScreen] visibleFrame];
124 NSPoint corner = NSMakePoint(NSMinX(work_area), NSMaxY(work_area));
133 NSMaxX(work_area) - size.width()),
135 NSMinY(work_area) + size.height()));
  /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(),
82 gfx::Rect work_area = display.work_area() local
    [all...]
  /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());
132 gfx::Rect work_area = GetWorkAreaForWindowInParent(window) local
235 gfx::Rect work_area = screen->GetDisplayNearestWindow(target).work_area(); local
295 gfx::Rect work_area = GetWorkAreaForWindowInParent(added_window); local
321 gfx::Rect work_area = GetWorkAreaForWindowInParent(added_window); local
370 const gfx::Rect work_area = display.work_area(); local
404 const gfx::Rect work_area = window && window->IsVisible() ? local
    [all...]
base_layout_manager_unittest.cc 181 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
182 window.get()).work_area();
184 EXPECT_LE(window->bounds().width(), work_area.width());
185 EXPECT_LE(window->bounds().height(), work_area.height());
189 work_area = Shell::GetScreen()->GetDisplayNearestWindow(
190 window.get()).work_area();
191 EXPECT_LE(window->bounds().width(), work_area.width());
192 EXPECT_LE(window->bounds().height(), work_area.height());
196 work_area = Shell::GetScreen()->GetDisplayNearestWindow(
197 window.get()).work_area();
    [all...]
window_resizer.cc 202 gfx::Rect work_area = local
203 Shell::GetScreen()->GetDisplayNearestWindow(details.window).work_area();
211 work_area.Union(dock_layout->docked_bounds());
212 work_area = ScreenAsh::ConvertRectFromScreen(details.window->parent(),
213 work_area);
216 new_bounds.right() < work_area.x() + kMinimumOnScreenArea) {
217 int delta = work_area.x() + kMinimumOnScreenArea - new_bounds.right();
219 } else if (new_bounds.x() > work_area.right() - kMinimumOnScreenArea) {
220 int width = new_bounds.right() - work_area.right() +
222 new_bounds.set_x(work_area.right() - kMinimumOnScreenArea)
    [all...]
toplevel_window_event_handler_unittest.cc 310 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
311 target.get()).work_area();
313 // Drag further than work_area bottom.
314 DragFromCenterBy(target.get(), 100, work_area.height());
317 // Size should have increased by 100, work_area.height() - target->bounds.y()
318 EXPECT_EQ(gfx::Size(200, work_area.height() - target->bounds().y()),
324 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
325 target.get()).work_area();
327 // Drag further than work_area bottom.
328 DragFromCenterBy(target.get(), -30, work_area.height())
339 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
366 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
    [all...]
  /external/chromium_org/chrome/browser/ui/window_sizer/
window_sizer_mac.mm 21 NSRect work_area = [[NSScreen mainScreen] visibleFrame];
23 NSPoint corner = NSMakePoint(NSMinX(work_area), NSMaxY(work_area));
32 NSMaxX(work_area) - size.width()),
34 NSMinY(work_area) + size.height()));
window_sizer.cc 46 gfx::Rect* work_area,
80 work_area->SetRect(work_area_left, work_area_top,
265 gfx::Rect work_area = screen_->GetDisplayMatching(*bounds).work_area(); local
267 bounds->AdjustToFit(work_area);
313 gfx::Rect work_area = display.work_area(); local
317 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050);
318 int default_height = work_area.height() - 2 * kWindowTilePixels;
331 work_area.width() > kMinScreenWidthForWindowHalving)
363 gfx::Rect work_area = display.work_area(); local
    [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 67 const gfx::Rect& work_area = display_.work_area(); local
74 work_area.x(), work_area.y(), kTaskbarSize, work_area.height());
78 gfx::Rect(work_area.x() + work_area.width() - kTaskbarSize,
79 work_area.y(),
81 work_area.height());
85 work_area.x(), work_area.y(), work_area.width(), kTaskbarSize)
    [all...]
  /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...]
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...]
  /external/chromium_org/ash/wm/workspace/
workspace_event_handler.cc 137 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
138 target).work_area();
144 (target->bounds().height() == work_area.height() &&
145 target->bounds().y() == work_area.y())) {
153 work_area.y(),
155 work_area.height()));
162 (target->bounds().width() == work_area.width() &&
163 target->bounds().x() == work_area.x())) {
170 gfx::Rect(work_area.x(),
172 work_area.width()
    [all...]
snap_sizer.cc 58 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window));
59 return std::max(work_area.width() * kMaximumScreenPercent / 100,
66 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window));
71 width = work_area.width() / 2;
73 width = std::max(kDefaultWidthSmallScreen, work_area.width() / 2);
94 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window));
95 int half_width = work_area.width() / 2;
230 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(
232 int y = work_area.y();
233 int max_y = work_area.bottom()
    [all...]
snap_sizer_unittest.cc 33 ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
35 ScreenAsh::GetSecondaryDisplay().work_area();
81 ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
115 ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
188 ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
252 gfx::Rect work_area = local
253 ash::Shell::GetScreen()->GetPrimaryDisplay().work_area();
254 gfx::Rect expected(work_area);
255 expected.set_width(work_area.width() * 0.9);
270 work_area = ash::Shell::GetScreen()->GetPrimaryDisplay().work_area()
    [all...]
  /external/chromium_org/chrome/browser/ui/views/message_center/
web_notification_tray.cc 71 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area(); local
72 work_area.Inset(kScreenEdgePadding, kScreenEdgePadding);
77 if (work_area.height() < screen_bounds.height()) {
78 if (work_area.y() > screen_bounds.y())
82 if (work_area.width() < screen_bounds.width()) {
83 if (work_area.x() > screen_bounds.x())
109 Alignment GetAnchorAlignment(const gfx::Rect& work_area, gfx::Point corner) {
110 gfx::Point center = work_area.CenterPoint();
277 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area() local
    [all...]
  /external/chromium/chrome/browser/ui/views/
chrome_views_delegate.cc 74 gfx::Rect work_area(
76 window_preferences->SetInteger("work_area_left", work_area.x());
77 window_preferences->SetInteger("work_area_top", work_area.y());
78 window_preferences->SetInteger("work_area_right", work_area.right());
79 window_preferences->SetInteger("work_area_bottom", work_area.bottom());
  /external/chromium_org/content/browser/renderer_host/
gtk_window_utils.cc 83 gfx::Rect work_area = GetWorkArea(GDK_WINDOW_XID(gdk_window)); local
84 if (!work_area.IsEmpty())
85 available_rect.Intersect(work_area);
  /external/chromium_org/ash/wm/dock/
docked_window_layout_manager_unittest.cc 194 gfx::Rect work_area = local
195 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area();
200 dx += work_area.x() - initial_location_in_screen.x();
202 dx += work_area.right() - 1 - initial_location_in_screen.x();
419 gfx::Rect work_area = local
420 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
423 int gap3 = work_area.bottom() - w2->GetBoundsInScreen().bottom();
453 gfx::Rect work_area = local
454 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
455 int gap1 = w2->GetBoundsInScreen().y() - work_area.y()
489 gfx::Rect work_area = local
557 gfx::Rect work_area = local
745 gfx::Rect work_area = local
807 gfx::Rect work_area = local
    [all...]

Completed in 284 milliseconds

1 2 3 4 5