OLD | NEW |
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 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/gfx/screen_impl.h" | 10 #include "ui/gfx/screen_impl.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 Point Screen::GetCursorScreenPoint() { | 35 Point Screen::GetCursorScreenPoint() { |
36 return g_instance_->GetCursorScreenPoint(); | 36 return g_instance_->GetCursorScreenPoint(); |
37 } | 37 } |
38 | 38 |
39 // static | 39 // static |
40 NativeWindow Screen::GetWindowAtCursorScreenPoint() { | 40 NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
41 return g_instance_->GetWindowAtCursorScreenPoint(); | 41 return g_instance_->GetWindowAtCursorScreenPoint(); |
42 } | 42 } |
43 | 43 |
44 // static | 44 // static |
45 int Screen::GetNumMonitors() { | 45 int Screen::GetNumDisplays() { |
46 return g_instance_->GetNumMonitors(); | 46 return g_instance_->GetNumDisplays(); |
47 } | 47 } |
48 | 48 |
49 // static | 49 // static |
50 Display Screen::GetMonitorNearestWindow(NativeView window) { | 50 Display Screen::GetDisplayNearestWindow(NativeView window) { |
51 return g_instance_->GetMonitorNearestWindow(window); | 51 return g_instance_->GetDisplayNearestWindow(window); |
52 } | 52 } |
53 | 53 |
54 // static | 54 // static |
55 Display Screen::GetMonitorNearestPoint(const Point& point) { | 55 Display Screen::GetDisplayNearestPoint(const Point& point) { |
56 return g_instance_->GetMonitorNearestPoint(point); | 56 return g_instance_->GetDisplayNearestPoint(point); |
57 } | 57 } |
58 | 58 |
59 // static | 59 // static |
60 Display Screen::GetPrimaryMonitor() { | 60 Display Screen::GetPrimaryDisplay() { |
61 return g_instance_->GetPrimaryMonitor(); | 61 return g_instance_->GetPrimaryDisplay(); |
62 } | 62 } |
63 | 63 |
64 // static | 64 // static |
65 Display Screen::GetMonitorMatching(const gfx::Rect& match_rect) { | 65 Display Screen::GetDisplayMatching(const gfx::Rect& match_rect) { |
66 return g_instance_->GetMonitorNearestPoint(match_rect.CenterPoint()); | 66 return g_instance_->GetDisplayNearestPoint(match_rect.CenterPoint()); |
67 } | 67 } |
68 | 68 |
69 } // namespace gfx | 69 } // namespace gfx |
OLD | NEW |