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

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

Issue 11958004: Make new-style page scale work on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 80-col limit Created 7 years, 11 months 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
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/display.h" 8 #include "ui/gfx/display.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 class ScreenAndroid : public Screen { 12 class ScreenAndroid : public Screen {
13 public: 13 public:
14 ScreenAndroid() {} 14 ScreenAndroid() {}
15 15
16 bool IsDIPEnabled() OVERRIDE { 16 bool IsDIPEnabled() OVERRIDE {
17 return false; 17 return true;
18 } 18 }
19 19
20 gfx::Point GetCursorScreenPoint() OVERRIDE { 20 gfx::Point GetCursorScreenPoint() OVERRIDE {
21 return gfx::Point(); 21 return gfx::Point();
22 } 22 }
23 23
24 gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE { 24 gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE {
25 NOTIMPLEMENTED(); 25 NOTIMPLEMENTED();
26 return NULL; 26 return NULL;
27 } 27 }
(...skipping 30 matching lines...) Expand all
58 58
59 private: 59 private:
60 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid); 60 DISALLOW_COPY_AND_ASSIGN(ScreenAndroid);
61 }; 61 };
62 62
63 Screen* CreateNativeScreen() { 63 Screen* CreateNativeScreen() {
64 return new ScreenAndroid; 64 return new ScreenAndroid;
65 } 65 }
66 66
67 } // namespace gfx 67 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698