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

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

Issue 8382019: Move DisplayUtils methods into gfx::Screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/screen.h" 5 #include "ui/gfx/screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 DCHECK(instance_); 51 DCHECK(instance_);
52 return instance_->GetMonitorAreaNearestPointImpl(point); 52 return instance_->GetMonitorAreaNearestPointImpl(point);
53 } 53 }
54 54
55 // static 55 // static
56 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { 56 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() {
57 DCHECK(instance_); 57 DCHECK(instance_);
58 return instance_->GetWindowAtCursorScreenPointImpl(); 58 return instance_->GetWindowAtCursorScreenPointImpl();
59 } 59 }
60 60
61 // static
62 gfx::Size Screen::GetPrimaryMonitorSize() {
63 DCHECK(instance_);
James Cook 2011/10/24 23:40:54 nit: Do we really need all these DCHECK's?
Daniel Erat 2011/10/25 00:32:48 Agreed and removed.
64 return instance_->GetPrimaryMonitorSizeImpl();
65 }
66
67 // static
68 int Screen::GetNumMonitors() {
69 DCHECK(instance_);
70 return instance_->GetNumMonitorsImpl();
71 }
72
61 } // namespace gfx 73 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_gtk.cc » ('j') | ui/gfx/screen_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698