Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: ui/gfx/screen.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix command line Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698