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

Side by Side Diff: ui/gfx/screen_ios.mm

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_android.cc ('k') | ui/gfx/screen_mac.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 #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
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
OLDNEW
« no previous file with comments | « ui/gfx/screen_android.cc ('k') | ui/gfx/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698