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/keyboard_overlay/
keyboard_overlay_delegate_unittest.cc 36 gfx::Rect work_area = Shell::GetScreen()->GetPrimaryDisplay().work_area(); local
38 EXPECT_EQ(work_area.CenterPoint().x(), bounds.CenterPoint().x());
39 EXPECT_EQ(work_area.bottom(), bounds.bottom());
  /external/chromium_org/ash/
dip_unittest.cc 41 gfx::Rect work_area = display.work_area(); local
42 EXPECT_EQ("0,0 1000x852", work_area.ToString());
43 EXPECT_EQ("0,0,48,0", display.bounds().InsetsFrom(work_area).ToString());
58 work_area = display_2x.work_area();
59 EXPECT_EQ("0,0 1000x852", work_area.ToString());
60 EXPECT_EQ("0,0,48,0", display_2x.bounds().InsetsFrom(work_area).ToString());
66 display_2x.bounds().InsetsFrom(work_area).height(),
  /external/chromium_org/ash/wm/workspace/
auto_window_management.cc 77 gfx::Rect work_area = gfx::Rect(window->parent()->bounds().size()); local
78 work_area.Inset(Shell::GetScreen()->GetDisplayMatching(
79 work_area).GetWorkAreaInsets());
80 return work_area;
82 return Shell::GetScreen()->GetDisplayNearestWindow(window).work_area();
124 gfx::Rect work_area = GetWorkAreaForWindow(window); local
130 ash::wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area, &bounds);
133 bounds.set_x((work_area.width() - bounds.width()) / 2);
180 gfx::Rect work_area = GetWorkAreaForWindow(added_window); local
186 bool move_right = other_bounds.CenterPoint().x() > work_area.width() / 2
    [all...]
workspace_event_handler.cc 153 gfx::Rect work_area = local
154 Shell::GetScreen()->GetDisplayNearestWindow(target).work_area();
162 (target->bounds().height() == work_area.height() &&
163 target->bounds().y() == work_area.y())) {
170 work_area.y(),
172 work_area.height()));
179 (target->bounds().width() == work_area.width() &&
180 target->bounds().x() == work_area.x())) {
186 gfx::Rect(work_area.x(),
188 work_area.width()
    [all...]
workspace_event_handler_unittest.cc 90 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
91 window.get()).work_area();
110 EXPECT_EQ(work_area.y(), bounds_in_screen.y());
111 EXPECT_EQ(work_area.height(), bounds_in_screen.height());
138 EXPECT_EQ(work_area.x(), bounds_in_screen.x());
139 EXPECT_EQ(work_area.width(), bounds_in_screen.width());
156 gfx::Rect work_area2 = ScreenAsh::GetSecondaryDisplay().work_area();
208 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
209 window.get()).work_area();
232 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow local
    [all...]
  /external/chromium_org/chrome/browser/ui/panels/
panel_resize_controller.cc 123 gfx::Rect work_area = panel_manager_->display_settings_provider()-> local
126 mouse_location.y() < work_area.y()) {
127 new_height -= work_area.y() - new_y;
display_settings_provider.cc 80 gfx::Rect work_area = display.work_area(); local
81 int system_menu_height = work_area.y() - display_area.y();
89 return gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area();
106 return display.work_area();
docked_panel_collection.h 104 gfx::Rect work_area() const { return work_area_; } function in class:DockedPanelCollection
  /external/chromium_org/content/browser/renderer_host/
gtk_window_utils.cc 82 gfx::Rect work_area = GetWorkArea(GDK_WINDOW_XID(gdk_window)); local
83 if (!work_area.IsEmpty())
84 available_rect.Intersect(work_area);
  /external/chromium_org/ash/wm/
base_layout_manager_unittest.cc 188 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
189 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();
198 EXPECT_LE(window->bounds().width(), work_area.width());
199 EXPECT_LE(window->bounds().height(), work_area.height());
203 work_area = Shell::GetScreen()->GetDisplayNearestWindow(
204 window.get()).work_area();
    [all...]
custom_frame_view_ash_unittest.cc 328 gfx::Rect work_area = widget->GetWorkAreaBoundsInScreen(); local
330 bounds.set_x(work_area.width() - bounds.width());
335 gfx::Point end_point = gfx::Point(work_area.width(), start_point.y());
    [all...]
toplevel_window_event_handler_unittest.cc 312 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
313 target.get()).work_area();
315 // Drag further than work_area bottom.
316 DragFromCenterBy(target.get(), 100, work_area.height());
319 // Size should have increased by 100, work_area.height() - target->bounds.y()
320 EXPECT_EQ(gfx::Size(200, work_area.height() - target->bounds().y()),
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())
341 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
368 gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( local
    [all...]
window_resizer.cc 207 gfx::Rect work_area = local
208 Shell::GetScreen()->GetDisplayNearestWindow(details.window).work_area();
209 work_area.Union(dock_layout->docked_bounds());
210 work_area = ScreenAsh::ConvertRectFromScreen(details.window->parent(),
211 work_area);
214 new_bounds.right() < work_area.x() + kMinimumOnScreenArea) {
215 int delta = work_area.x() + kMinimumOnScreenArea - new_bounds.right();
217 } else if (new_bounds.x() > work_area.right() - kMinimumOnScreenArea) {
218 int width = new_bounds.right() - work_area.right() +
220 new_bounds.set_x(work_area.right() - kMinimumOnScreenArea)
    [all...]
  /external/chromium_org/chrome/browser/ui/ash/
window_positioner.cc 49 const gfx::Rect work_area = window && window->IsVisible() ? local
50 Shell::GetScreen()->GetDisplayNearestWindow(window).work_area() :
51 Shell::GetScreen()->GetPrimaryDisplay().work_area();
55 work_area.width()) ||
57 work_area.height()))
58 return AlignPopupPosition(old_pos, work_area, grid);
59 const gfx::Rect result = SmartPopupPosition(old_pos, work_area, grid);
61 return AlignPopupPosition(result, work_area, grid);
62 return NormalPopupPosition(old_pos, work_area);
67 const gfx::Rect& work_area) {
    [all...]
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/chrome/browser/ui/views/frame/
app_non_client_frame_view_ash_browsertest.cc 202 const gfx::Rect work_area = local
203 gfx::Screen::GetScreenFor(native_window)->GetPrimaryDisplay().work_area();
211 EXPECT_EQ(work_area.right(), rect.right());
212 EXPECT_EQ(work_area.y(), rect.y());
227 EXPECT_EQ(work_area.right(), rect_after.right());
228 EXPECT_EQ(work_area.y(), rect_after.y());
  /external/chromium_org/ui/gfx/
display.h 17 // |bounds()| and |work_area| will return values in DIP coordinate
53 const Rect& work_area() const { return work_area_; } function in class:gfx::Display
54 void set_work_area(const Rect& work_area) { work_area_ = work_area; }
  /external/chromium/chrome/browser/ui/tabs/
dock_info_win.cc 234 gfx::Rect work_area = views::Screen::GetMonitorWorkAreaNearestPoint( local
236 if (!work_area.IsEmpty()) {
237 result_.set_monitor_bounds(work_area);
  /external/chromium_org/ash/system/web_notification/
web_notification_tray_unittest.cc 307 gfx::Rect work_area = GetPopupWorkArea(); local
314 EXPECT_GT(work_area.size().GetArea(), work_area_with_tray.size().GetArea());
321 EXPECT_GT(work_area.size().GetArea(),
330 EXPECT_GT(work_area.size().GetArea(),
338 EXPECT_EQ(work_area.ToString(), GetPopupWorkArea().ToString());
345 gfx::Rect work_area = GetPopupWorkArea(); local
350 EXPECT_EQ(work_area.ToString(), GetPopupWorkArea().ToString());
357 gfx::Rect work_area = GetPopupWorkArea(); local
363 EXPECT_GT(work_area.size().GetArea(), GetPopupWorkArea().size().GetArea());
  /external/chromium_org/chrome/browser/extensions/api/system_display/
display_info_provider_chromeos.cc 79 const gfx::Rect& work_area = display.work_area(); local
104 unit->work_area.left = work_area.x();
105 unit->work_area.top = work_area.y();
106 unit->work_area.width = work_area.width();
107 unit->work_area.height = work_area.height()
    [all...]
  /external/chromium_org/chrome/browser/ui/window_sizer/
window_sizer_ash.cc 118 // Move the given |bounds_in_screen| on the available |work_area| to the
121 bool MoveRect(const gfx::Rect& work_area,
125 if (work_area.right() > bounds_in_screen.right()) {
126 bounds_in_screen.set_x(work_area.right() - bounds_in_screen.width());
130 if (work_area.x() < bounds_in_screen.x()) {
131 bounds_in_screen.set_x(work_area.x());
184 gfx::Rect work_area = local
188 int count = GetNumberOfValidTopLevelBrowserWindows(work_area);
189 aura::Window* top_window = GetTopWindow(work_area);
199 bounds_in_screen->AdjustToFit(work_area);
243 gfx::Rect work_area = monitor_info_provider_->GetPrimaryDisplayWorkArea(); local
    [all...]
window_sizer_common_unittest.cc 19 const gfx::Rect& work_area) {
20 DCHECK(bounds.Contains(work_area));
22 work_areas_.push_back(work_area);
65 const gfx::Rect& work_area,
69 persistent_work_area_ = work_area;
112 const gfx::Rect& work_area,
127 sp->SetPersistentState(bounds, work_area, show_state_persisted, true);
141 const gfx::Rect& work_area,
148 monitor1_bounds, monitor1_work_area, monitor2_bounds, bounds, work_area,
160 gfx::Rect work_area = display_config local
    [all...]
  /external/chromium/chrome/browser/ui/panels/
panel_manager.cc 66 gfx::Rect work_area = info_provider->GetPrimaryMonitorWorkArea(); local
68 min_x_ = work_area.x();
69 current_x_ = work_area.right();
70 bottom_edge_y_ = work_area.bottom();
71 max_width_ = static_cast<int>(work_area.width() * kPanelMaxWidthFactor);
72 max_height_ = static_cast<int>(work_area.height() * kPanelMaxHeightFactor);
  /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_unittest.cc 49 void AddMonitor(const gfx::Rect& bounds, const gfx::Rect& work_area) {
50 DCHECK(bounds.Contains(work_area));
52 work_areas_.push_back(work_area);
73 const gfx::Rect& work_area = work_areas_[monitor_index]; local
74 return gfx::Point(work_area.x() - bounds.x(), work_area.y() - bounds.y());
114 const gfx::Rect& work_area,
118 persistent_work_area_ = work_area;
162 const gfx::Rect& work_area,
172 sp->SetPersistentState(state, maximized, work_area, true)
    [all...]

Completed in 200 milliseconds

1 2