OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/screen.h" |
| 6 |
| 7 #include "ui/gfx/monitor.h" |
| 8 |
| 9 namespace gfx { |
| 10 |
| 11 // Utility functions to get Monitor bounds/WorkArea bounds. |
| 12 // static |
| 13 gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeView view) { |
| 14 return GetMonitorNearestWindow(view)->GetBounds(); |
| 15 } |
| 16 |
| 17 gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeView view) { |
| 18 return GetMonitorNearestWindow(view)->GetWorkArea(); |
| 19 } |
| 20 |
| 21 gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { |
| 22 return GetMonitorNearestPoint(point)->GetBounds(); |
| 23 } |
| 24 |
| 25 gfx::Rect Screen::GetMonitorWorkAreaNearestPoint(const gfx::Point& point) { |
| 26 return GetMonitorNearestPoint(point)->GetWorkArea(); |
| 27 } |
| 28 |
| 29 #if defined(USE_AURA) |
| 30 ScreenImpl::~ScreenImpl() {} |
| 31 #endif |
| 32 |
| 33 } // namespace gfx |
OLD | NEW |