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

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

Issue 10389109: Add gfx::Screen::IsEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Decided that the original approach with gfx::Sceren::IsDIPEnabled is better than the ifdef Created 8 years, 7 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
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/monitor.h" 8 #include "ui/gfx/monitor.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 // static 12 // static
13 bool Screen::IsDIPEnabled() {
14 return false;
15 }
16
17 // static
13 gfx::Monitor Screen::GetPrimaryMonitor() { 18 gfx::Monitor Screen::GetPrimaryMonitor() {
14 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation"; 19 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation";
15 return gfx::Monitor(0, gfx::Rect(0, 0, 1, 1)); 20 return gfx::Monitor(0, gfx::Rect(0, 0, 1, 1));
16 } 21 }
17 22
18 // static 23 // static
19 gfx::Monitor Screen::GetMonitorNearestWindow(gfx::NativeView view) { 24 gfx::Monitor Screen::GetMonitorNearestWindow(gfx::NativeView view) {
20 return GetPrimaryMonitor(); 25 return GetPrimaryMonitor();
21 } 26 }
22 27
23 // static 28 // static
24 int Screen::GetNumMonitors() { 29 int Screen::GetNumMonitors() {
25 return 1; 30 return 1;
26 } 31 }
27 32
28 } // namespace gfx 33 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698