| 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/android/device_display_info.h" | 8 #include "ui/gfx/android/device_display_info.h" |
| 9 #include "ui/gfx/display.h" | 9 #include "ui/gfx/display.h" |
| 10 #include "ui/gfx/size_conversions.h" | 10 #include "ui/gfx/size_conversions.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 class ScreenAndroid : public Screen { | 14 class ScreenAndroid : public Screen { |
| 15 public: | 15 public: |
| 16 ScreenAndroid() {} | 16 ScreenAndroid() {} |
| 17 | 17 |
| 18 virtual bool IsDIPEnabled() override { return true; } | |
| 19 | |
| 20 virtual gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } | 18 virtual gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } |
| 21 | 19 |
| 22 virtual gfx::NativeWindow GetWindowUnderCursor() override { | 20 virtual gfx::NativeWindow GetWindowUnderCursor() override { |
| 23 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
| 24 return NULL; | 22 return NULL; |
| 25 } | 23 } |
| 26 | 24 |
| 27 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 25 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
| 28 override { | 26 override { |
| 29 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 82 |
| 85 private: | 83 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); | 84 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 Screen* CreateNativeScreen() { | 87 Screen* CreateNativeScreen() { |
| 90 return new ScreenAndroid; | 88 return new ScreenAndroid; |
| 91 } | 89 } |
| 92 | 90 |
| 93 } // namespace gfx | 91 } // namespace gfx |
| OLD | NEW |