Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: ui/gfx/screen_android.cc

Issue 672823002: Remove IsDIPEnabled from Screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-1
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/gfx/screen.h ('k') | ui/gfx/screen_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698