Searched refs:monitor_rect (Results 1 – 4 of 4) sorted by relevance
114 const gfx::Rect monitor_rect = Shell::GetScreen()->GetDisplayNearestPoint( in GetPreferredSize() local116 if (!monitor_rect.IsEmpty()) { in GetPreferredSize()120 static_cast<int>(monitor_rect.width() * in GetPreferredSize()125 static_cast<int>(monitor_rect.height() * in GetPreferredSize()197 gfx::Rect monitor_rect = Shell::GetScreen()->GetDisplayNearestPoint( in GetBubbleBounds() local202 if (bubble_rect.x() < monitor_rect.x()) in GetBubbleBounds()203 offset = monitor_rect.x() - bubble_rect.x(); in GetBubbleBounds()204 else if (bubble_rect.right() > monitor_rect.right()) in GetBubbleBounds()205 offset = monitor_rect.right() - bubble_rect.right(); in GetBubbleBounds()210 if (bubble_rect.y() < monitor_rect.y()) in GetBubbleBounds()[all …]
29 Rect monitor_rect(mi.rcWork); in AdjustWindowToFit() local31 new_window_rect.AdjustToFit(monitor_rect); in AdjustWindowToFit()
174 gfx::Rect* monitor_rect, in GetMonitorAndRects() argument177 DCHECK(monitor_rect); in GetMonitorAndRects()185 *monitor_rect = gfx::Rect(monitor_info.rcMonitor); in GetMonitorAndRects()2225 gfx::Rect monitor_rect, work_area; in OnWindowPosChanging() local2227 GetMonitorAndRects(window_rect, &monitor, &monitor_rect, &work_area)) { in OnWindowPosChanging()2228 bool work_area_changed = (monitor_rect == last_monitor_rect_) && in OnWindowPosChanging()2244 new_window_rect = monitor_rect; in OnWindowPosChanging()2272 last_monitor_rect_ = monitor_rect; in OnWindowPosChanging()
786 gfx::Rect monitor_rect = gfx::Screen::GetScreenFor(window)-> in AvoidMouse() local790 if (bubble_bottom_y + offset > monitor_rect.height() || in AvoidMouse()