Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 DCHECK(instance_); | 51 DCHECK(instance_); |
| 52 return instance_->GetMonitorAreaNearestPointImpl(point); | 52 return instance_->GetMonitorAreaNearestPointImpl(point); |
| 53 } | 53 } |
| 54 | 54 |
| 55 // static | 55 // static |
| 56 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { | 56 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
| 57 DCHECK(instance_); | 57 DCHECK(instance_); |
| 58 return instance_->GetWindowAtCursorScreenPointImpl(); | 58 return instance_->GetWindowAtCursorScreenPointImpl(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 // static | |
| 62 gfx::Size Screen::GetPrimaryMonitorSize() { | |
| 63 DCHECK(instance_); | |
|
James Cook
2011/10/24 23:40:54
nit: Do we really need all these DCHECK's?
Daniel Erat
2011/10/25 00:32:48
Agreed and removed.
| |
| 64 return instance_->GetPrimaryMonitorSizeImpl(); | |
| 65 } | |
| 66 | |
| 67 // static | |
| 68 int Screen::GetNumMonitors() { | |
| 69 DCHECK(instance_); | |
| 70 return instance_->GetNumMonitorsImpl(); | |
| 71 } | |
| 72 | |
| 61 } // namespace gfx | 73 } // namespace gfx |
| OLD | NEW |