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

Side by Side Diff: mojo/aura/screen_mojo.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, 2 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
« no previous file with comments | « mojo/aura/screen_mojo.h ('k') | ui/aura/test/test_screen.h » ('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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 "mojo/aura/screen_mojo.h" 5 #include "mojo/aura/screen_mojo.h"
6 6
7 #include "ui/gfx/native_widget_types.h" 7 #include "ui/gfx/native_widget_types.h"
8 #include "ui/gfx/rect_conversions.h" 8 #include "ui/gfx/rect_conversions.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 // static 12 // static
13 ScreenMojo* ScreenMojo::Create() { 13 ScreenMojo* ScreenMojo::Create() {
14 return new ScreenMojo(gfx::Rect(0, 0, 800, 600)); 14 return new ScreenMojo(gfx::Rect(0, 0, 800, 600));
15 } 15 }
16 16
17 ScreenMojo::~ScreenMojo() { 17 ScreenMojo::~ScreenMojo() {
18 } 18 }
19 19
20 bool ScreenMojo::IsDIPEnabled() {
21 NOTIMPLEMENTED();
22 return true;
23 }
24
25 gfx::Point ScreenMojo::GetCursorScreenPoint() { 20 gfx::Point ScreenMojo::GetCursorScreenPoint() {
26 NOTIMPLEMENTED(); 21 NOTIMPLEMENTED();
27 return gfx::Point(); 22 return gfx::Point();
28 } 23 }
29 24
30 gfx::NativeWindow ScreenMojo::GetWindowUnderCursor() { 25 gfx::NativeWindow ScreenMojo::GetWindowUnderCursor() {
31 return GetWindowAtScreenPoint(GetCursorScreenPoint()); 26 return GetWindowAtScreenPoint(GetCursorScreenPoint());
32 } 27 }
33 28
34 gfx::NativeWindow ScreenMojo::GetWindowAtScreenPoint(const gfx::Point& point) { 29 gfx::NativeWindow ScreenMojo::GetWindowAtScreenPoint(const gfx::Point& point) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void ScreenMojo::RemoveObserver(gfx::DisplayObserver* observer) { 62 void ScreenMojo::RemoveObserver(gfx::DisplayObserver* observer) {
68 } 63 }
69 64
70 ScreenMojo::ScreenMojo(const gfx::Rect& screen_bounds) { 65 ScreenMojo::ScreenMojo(const gfx::Rect& screen_bounds) {
71 static int64 synthesized_display_id = 2000; 66 static int64 synthesized_display_id = 2000;
72 display_.set_id(synthesized_display_id++); 67 display_.set_id(synthesized_display_id++);
73 display_.SetScaleAndBounds(1.0f, screen_bounds); 68 display_.SetScaleAndBounds(1.0f, screen_bounds);
74 } 69 }
75 70
76 } // namespace mojo 71 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/aura/screen_mojo.h ('k') | ui/aura/test/test_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698