| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/gfx/android/device_display_info.h" | 9 #include "ui/gfx/android/device_display_info.h" |
| 10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
| 11 #include "ui/gfx/geometry/size_conversions.h" | 11 #include "ui/gfx/geometry/size_conversions.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 | 14 |
| 15 class ScreenAndroid : public Screen { | 15 class ScreenAndroid : public Screen { |
| 16 public: | 16 public: |
| 17 ScreenAndroid() {} | 17 ScreenAndroid() {} |
| 18 | 18 |
| 19 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } | 19 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } |
| 20 | 20 |
| 21 gfx::NativeWindow GetWindowUnderCursor() override { | 21 bool IsWindowUnderCursor(gfx::NativeWindow window) override { |
| 22 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
| 23 return NULL; | 23 return false; |
| 24 } | 24 } |
| 25 | 25 |
| 26 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { | 26 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { |
| 27 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
| 28 return NULL; | 28 return NULL; |
| 29 } | 29 } |
| 30 | 30 |
| 31 gfx::Display GetPrimaryDisplay() const override { | 31 gfx::Display GetPrimaryDisplay() const override { |
| 32 gfx::DeviceDisplayInfo device_info; | 32 gfx::DeviceDisplayInfo device_info; |
| 33 const float device_scale_factor = device_info.GetDIPScale(); | 33 const float device_scale_factor = device_info.GetDIPScale(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); | 80 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 Screen* CreateNativeScreen() { | 83 Screen* CreateNativeScreen() { |
| 84 return new ScreenAndroid; | 84 return new ScreenAndroid; |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace gfx | 87 } // namespace gfx |
| OLD | NEW |