Home
last modified time | relevance | path

Searched refs:work_area (Results 1 – 9 of 9) sorted by relevance

/external/chromium/chrome/browser/ui/
Dwindow_sizer.cc28 gfx::Rect* work_area) const { in GetPersistentState()
63 work_area->SetRect(work_area_left, work_area_top, in GetPersistentState()
201 gfx::Rect work_area = monitor_info_provider_->GetPrimaryMonitorWorkArea(); in GetDefaultWindowBounds() local
205 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050); in GetDefaultWindowBounds()
206 int default_height = work_area.height() - 2 * kWindowTilePixels; in GetDefaultWindowBounds()
219 work_area.width() > kMinScreenWidthForWindowHalving) { in GetDefaultWindowBounds()
223 default_width = static_cast<int>(work_area.width() / 2. - in GetDefaultWindowBounds()
226 default_bounds->SetRect(kWindowTilePixels + work_area.x(), in GetDefaultWindowBounds()
227 kWindowTilePixels + work_area.y(), in GetDefaultWindowBounds()
235 gfx::Rect work_area = monitor_info_provider_->GetWorkAreaAt(i); in PositionIsOffscreen() local
[all …]
Dwindow_sizer_mac.mm54 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()));
Dwindow_sizer_unittest.cc49 void AddMonitor(const gfx::Rect& bounds, const gfx::Rect& work_area) { in AddMonitor() argument
50 DCHECK(bounds.Contains(work_area)); in AddMonitor()
52 work_areas_.push_back(work_area); in AddMonitor()
73 const gfx::Rect& work_area = work_areas_[monitor_index]; in GetBoundsOffsetMatching() local
74 return gfx::Point(work_area.x() - bounds.x(), work_area.y() - bounds.y()); in GetBoundsOffsetMatching()
114 const gfx::Rect& work_area, in SetPersistentState() argument
118 persistent_work_area_ = work_area; in SetPersistentState()
162 const gfx::Rect& work_area, in GetWindowBounds() argument
172 sp->SetPersistentState(state, maximized, work_area, true); in GetWindowBounds()
Dwindow_sizer.h94 gfx::Rect* work_area) const = 0;
/external/chromium/chrome/browser/ui/views/
Dchrome_views_delegate.cc74 gfx::Rect work_area( in SaveWindowPlacement() local
76 window_preferences->SetInteger("work_area_left", work_area.x()); in SaveWindowPlacement()
77 window_preferences->SetInteger("work_area_top", work_area.y()); in SaveWindowPlacement()
78 window_preferences->SetInteger("work_area_right", work_area.right()); in SaveWindowPlacement()
79 window_preferences->SetInteger("work_area_bottom", work_area.bottom()); in SaveWindowPlacement()
/external/chromium/chrome/browser/ui/panels/
Dpanel_manager.cc66 gfx::Rect work_area = info_provider->GetPrimaryMonitorWorkArea(); in OnDisplayChanged() local
68 min_x_ = work_area.x(); in OnDisplayChanged()
69 current_x_ = work_area.right(); in OnDisplayChanged()
70 bottom_edge_y_ = work_area.bottom(); in OnDisplayChanged()
71 max_width_ = static_cast<int>(work_area.width() * kPanelMaxWidthFactor); in OnDisplayChanged()
72 max_height_ = static_cast<int>(work_area.height() * kPanelMaxHeightFactor); in OnDisplayChanged()
/external/chromium/chrome/browser/ui/tabs/
Ddock_info_win.cc234 gfx::Rect work_area = views::Screen::GetMonitorWorkAreaNearestPoint( in DockToWindowFinder() local
236 if (!work_area.IsEmpty()) { in DockToWindowFinder()
237 result_.set_monitor_bounds(work_area); in DockToWindowFinder()
/external/chromium/chrome/browser/ui/views/tabs/
Ddragged_tab_controller.cc579 gfx::Rect work_area = views::Screen::GetMonitorWorkAreaNearestPoint( in GetWindowCreatePoint() local
581 if (!work_area.IsEmpty()) { in GetWindowCreatePoint()
582 if (cursor_point.x() < work_area.x()) in GetWindowCreatePoint()
583 cursor_point.set_x(work_area.x()); in GetWindowCreatePoint()
584 else if (cursor_point.x() > work_area.right()) in GetWindowCreatePoint()
585 cursor_point.set_x(work_area.right()); in GetWindowCreatePoint()
586 if (cursor_point.y() < work_area.y()) in GetWindowCreatePoint()
587 cursor_point.set_y(work_area.y()); in GetWindowCreatePoint()
588 else if (cursor_point.y() > work_area.bottom()) in GetWindowCreatePoint()
589 cursor_point.set_y(work_area.bottom()); in GetWindowCreatePoint()
/external/chromium/chrome/browser/ui/gtk/
Dbrowser_window_gtk.cc1860 gfx::Rect work_area( in SaveWindowPosition() local
1862 window_preferences->SetInteger("work_area_left", work_area.x()); in SaveWindowPosition()
1863 window_preferences->SetInteger("work_area_top", work_area.y()); in SaveWindowPosition()
1864 window_preferences->SetInteger("work_area_right", work_area.right()); in SaveWindowPosition()
1865 window_preferences->SetInteger("work_area_bottom", work_area.bottom()); in SaveWindowPosition()