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/display.h" | 8 #include "ui/gfx/display.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 | 11 |
12 class ScreenAndroid : public Screen { | 12 class ScreenAndroid : public Screen { |
13 public: | 13 public: |
14 ScreenAndroid() {} | 14 ScreenAndroid() {} |
15 | 15 |
16 bool IsDIPEnabled() OVERRIDE { | 16 bool IsDIPEnabled() OVERRIDE { |
17 return false; | 17 return true; |
18 } | 18 } |
19 | 19 |
20 gfx::Point GetCursorScreenPoint() OVERRIDE { | 20 gfx::Point GetCursorScreenPoint() OVERRIDE { |
21 return gfx::Point(); | 21 return gfx::Point(); |
22 } | 22 } |
23 | 23 |
24 gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE { | 24 gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE { |
25 NOTIMPLEMENTED(); | 25 NOTIMPLEMENTED(); |
26 return NULL; | 26 return NULL; |
27 } | 27 } |
(...skipping 30 matching lines...) Loading... |
58 | 58 |
59 private: | 59 private: |
60 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); | 60 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); |
61 }; | 61 }; |
62 | 62 |
63 Screen* CreateNativeScreen() { | 63 Screen* CreateNativeScreen() { |
64 return new ScreenAndroid; | 64 return new ScreenAndroid; |
65 } | 65 } |
66 | 66 |
67 } // namespace gfx | 67 } // namespace gfx |
OLD | NEW |