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

1 2 3 4

  /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...]
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.h 41 const gfx::Rect& work_area,
46 const gfx::Rect& work_area);
50 const gfx::Rect &work_area,
  /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/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/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 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/
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...]
  /external/chromium_org/chrome/browser/ui/window_sizer/
window_sizer.cc 33 return screen_->GetPrimaryDisplay().work_area();
40 return screen_->GetDisplayMatching(match_rect).work_area();
59 gfx::Rect* work_area,
93 work_area->SetRect(work_area_left, work_area_top,
233 gfx::Rect work_area = local
236 bounds->AdjustToFit(work_area);
280 gfx::Rect work_area = monitor_info_provider_->GetPrimaryDisplayWorkArea(); local
284 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050);
285 int default_height = work_area.height() - 2 * kWindowTilePixels;
298 work_area.width() > kMinScreenWidthForWindowHalving)
319 gfx::Rect work_area = local
    [all...]
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.h 58 void AddMonitor(const gfx::Rect& bounds, const gfx::Rect& work_area);
85 const gfx::Rect& work_area,
123 // none. For all these states the |bounds| and |work_area| get used, for the
129 const gfx::Rect& work_area,
142 // none. For all these states the |bounds| and |work_area| get used, for the
148 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())
276 gfx::Rect work_area = local
286 gfx::Rect work_area = local
    [all...]
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();
  /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...]
snap_sizer.cc 47 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window));
48 int half_size = work_area.width() / 2;
49 int maximum_width = (kMinimumScreenPercent * work_area.width()) / 100;
164 gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window_));
165 int y = work_area.y();
168 int max_y = work_area.bottom();
173 int minimum_size = (kMinimumScreenPercent * work_area.width()) / 100;
174 width = std::max(std::min(minimum_size, 1024), work_area.width() / 2);
181 int x = work_area.x();
185 int max_x = work_area.right()
    [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...]
  /external/chromium_org/chrome/browser/extensions/api/system_display/
display_info_provider_win.cc 59 unit->work_area.left = display.work_area().x();
60 unit->work_area.top = display.work_area().y();
61 unit->work_area.width = display.work_area().width();
62 unit->work_area.height = display.work_area().height();
system_display_apitest.cc 47 unit->work_area.left = 0;
48 unit->work_area.top = 0;
49 unit->work_area.width = 960;
50 unit->work_area.height = 720;
  /external/chromium_org/chrome/browser/ui/views/message_center/
web_notification_tray.cc 72 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area(); local
73 work_area.Inset(kScreenEdgePadding, kScreenEdgePadding);
78 if (work_area.height() < screen_bounds.height()) {
79 if (work_area.y() > screen_bounds.y())
83 if (work_area.width() < screen_bounds.width()) {
84 if (work_area.x() > screen_bounds.x())
110 Alignment GetAnchorAlignment(const gfx::Rect& work_area, gfx::Point corner) {
111 gfx::Point center = work_area.CenterPoint();
251 gfx::Rect work_area = screen->GetPrimaryDisplay().work_area() local
    [all...]
  /external/chromium_org/ash/system/web_notification/
web_notification_tray.cc 128 gfx::Rect work_area = display.work_area(); local
137 work_area.Inset(0, 0, 0, width);
139 work_area.set_height(
140 std::max(0, work_area.height() - system_tray_height_));
144 work_area.Inset(width, 0, 0, 0);
147 work_area.set_height(
148 std::max(0, work_area.height() - system_tray_height_));
152 work_area.Inset(0, 0, width, 0);
155 work_area.set_height
    [all...]
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/ash/wm/
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...]
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...]
  /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 82 gfx::Rect work_area = GetWorkArea(GDK_WINDOW_XID(gdk_window)); local
83 if (!work_area.IsEmpty())
84 available_rect.Intersect(work_area);

Completed in 353 milliseconds

1 2 3 4