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

Side by Side 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, 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/aura/screen_aura.h" 5 #include "ui/aura/screen_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/desktop.h" 8 #include "ui/aura/desktop.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 gfx::Rect ScreenAura::GetBounds() { 48 gfx::Rect ScreenAura::GetBounds() {
49 return gfx::Rect(aura::Desktop::GetInstance()->GetHostSize()); 49 return gfx::Rect(aura::Desktop::GetInstance()->GetHostSize());
50 } 50 }
51 51
52 gfx::Rect ScreenAura::GetWorkAreaBounds() { 52 gfx::Rect ScreenAura::GetWorkAreaBounds() {
53 gfx::Rect bounds(GetBounds()); 53 gfx::Rect bounds(GetBounds());
54 bounds.Inset(work_area_insets_); 54 bounds.Inset(work_area_insets_);
55 return bounds; 55 return bounds;
56 } 56 }
57 57
58 gfx::Size ScreenAura::GetPrimaryMonitorSizeImpl() {
59 return GetMonitorWorkAreaNearestPoint(gfx::Point()).size();
60 }
61
62 int ScreenAura::GetNumMonitorsImpl() {
63 return 1;
64 }
65
58 } // namespace aura 66 } // namespace aura
OLDNEW
« 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