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

Side by Side Diff: ui/aura/test/test_screen.cc

Issue 10540091: Rename gfx::Monitor to gfx::Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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/aura/test/test_screen.h" 5 #include "ui/aura/test/test_screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/root_window.h" 8 #include "ui/aura/root_window.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 14 matching lines...) Expand all
25 25
26 gfx::NativeWindow TestScreen::GetWindowAtCursorScreenPoint() { 26 gfx::NativeWindow TestScreen::GetWindowAtCursorScreenPoint() {
27 const gfx::Point point = gfx::Screen::GetCursorScreenPoint(); 27 const gfx::Point point = gfx::Screen::GetCursorScreenPoint();
28 return root_window_->GetTopWindowContainingPoint(point); 28 return root_window_->GetTopWindowContainingPoint(point);
29 } 29 }
30 30
31 int TestScreen::GetNumMonitors() { 31 int TestScreen::GetNumMonitors() {
32 return 1; 32 return 1;
33 } 33 }
34 34
35 gfx::Monitor TestScreen::GetMonitorNearestWindow( 35 gfx::Display TestScreen::GetMonitorNearestWindow(
36 gfx::NativeWindow window) const { 36 gfx::NativeWindow window) const {
37 return GetMonitor(); 37 return GetMonitor();
38 } 38 }
39 39
40 gfx::Monitor TestScreen::GetMonitorNearestPoint(const gfx::Point& point) const { 40 gfx::Display TestScreen::GetMonitorNearestPoint(const gfx::Point& point) const {
41 return GetMonitor(); 41 return GetMonitor();
42 } 42 }
43 43
44 gfx::Monitor TestScreen::GetPrimaryMonitor() const { 44 gfx::Display TestScreen::GetPrimaryMonitor() const {
45 return GetMonitor(); 45 return GetMonitor();
46 } 46 }
47 47
48 gfx::Monitor TestScreen::GetMonitor() const { 48 gfx::Display TestScreen::GetMonitor() const {
49 return gfx::Monitor(0, root_window_->bounds()); 49 return gfx::Display(0, root_window_->bounds());
50 } 50 }
51 51
52 } // namespace aura 52 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_screen.h ('k') | ui/base/x/events_x.cc » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698