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 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 class ScreenIos : public gfx::Screen { | 14 class ScreenIos : public gfx::Screen { |
15 virtual bool IsDIPEnabled() override { | |
16 return true; | |
17 } | |
18 | |
19 virtual gfx::Point GetCursorScreenPoint() override { | 15 virtual gfx::Point GetCursorScreenPoint() override { |
20 NOTIMPLEMENTED(); | 16 NOTIMPLEMENTED(); |
21 return gfx::Point(0, 0); | 17 return gfx::Point(0, 0); |
22 } | 18 } |
23 | 19 |
24 virtual gfx::NativeWindow GetWindowUnderCursor() override { | 20 virtual gfx::NativeWindow GetWindowUnderCursor() override { |
25 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
26 return gfx::NativeWindow(); | 22 return gfx::NativeWindow(); |
27 } | 23 } |
28 | 24 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 83 |
88 } // namespace | 84 } // namespace |
89 | 85 |
90 namespace gfx { | 86 namespace gfx { |
91 | 87 |
92 Screen* CreateNativeScreen() { | 88 Screen* CreateNativeScreen() { |
93 return new ScreenIos; | 89 return new ScreenIos; |
94 } | 90 } |
95 | 91 |
96 } // namespace gfx | 92 } // namespace gfx |
OLD | NEW |