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

Unified Diff: ui/aura/screen_aura.cc

Issue 8382019: Move DisplayUtils methods into gfx::Screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DCHECKS 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/aura/screen_aura.h ('k') | ui/gfx/screen.h » ('j') | ui/ui_unittests.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/screen_aura.cc
diff --git a/ui/aura/screen_aura.cc b/ui/aura/screen_aura.cc
index 16d13673f7629b7847164e35276e9a69c32d474d..c8d64ca2411d4d56984a8b8c14594dae8838a85e 100644
--- a/ui/aura/screen_aura.cc
+++ b/ui/aura/screen_aura.cc
@@ -55,4 +55,12 @@ gfx::Rect ScreenAura::GetWorkAreaBounds() {
return bounds;
}
+gfx::Size ScreenAura::GetPrimaryMonitorSizeImpl() {
+ return GetMonitorWorkAreaNearestPoint(gfx::Point()).size();
+}
+
+int ScreenAura::GetNumMonitorsImpl() {
+ return 1;
+}
+
} // namespace aura
« no previous file with comments | « ui/aura/screen_aura.h ('k') | ui/gfx/screen.h » ('j') | ui/ui_unittests.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698