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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_gtk.cc » ('j') | ui/gfx/screen_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen_aura.cc
diff --git a/ui/gfx/screen_aura.cc b/ui/gfx/screen_aura.cc
index 097fe8cf20e6e303408719fc707c2d778c110f11..3cba5225ea796f0d07f99217c373516bdacbb0f1 100644
--- a/ui/gfx/screen_aura.cc
+++ b/ui/gfx/screen_aura.cc
@@ -58,4 +58,16 @@ gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() {
return instance_->GetWindowAtCursorScreenPointImpl();
}
+// static
+gfx::Size Screen::GetPrimaryMonitorSize() {
+ 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.
+ return instance_->GetPrimaryMonitorSizeImpl();
+}
+
+// static
+int Screen::GetNumMonitors() {
+ DCHECK(instance_);
+ return instance_->GetNumMonitorsImpl();
+}
+
} // namespace gfx
« 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