OLD | NEW |
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 | |
18 gfx::Monitor Screen::GetPrimaryMonitor() { | 13 gfx::Monitor Screen::GetPrimaryMonitor() { |
19 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation"; | 14 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation"; |
20 return gfx::Monitor(0, gfx::Rect(0, 0, 1, 1)); | 15 return gfx::Monitor(0, gfx::Rect(0, 0, 1, 1)); |
21 } | 16 } |
22 | 17 |
23 // static | 18 // static |
24 gfx::Monitor Screen::GetMonitorNearestWindow(gfx::NativeView view) { | 19 gfx::Monitor Screen::GetMonitorNearestWindow(gfx::NativeView view) { |
25 return GetPrimaryMonitor(); | 20 return GetPrimaryMonitor(); |
26 } | 21 } |
27 | 22 |
28 // static | 23 // static |
29 int Screen::GetNumMonitors() { | 24 int Screen::GetNumMonitors() { |
30 return 1; | 25 return 1; |
31 } | 26 } |
32 | 27 |
33 } // namespace gfx | 28 } // namespace gfx |
OLD | NEW |