Chromium Code Reviews| Index: ui/gfx/screen_aura.cc |
| diff --git a/ui/gfx/screen_aura.cc b/ui/gfx/screen_aura.cc |
| index 097fe8cf20e6e303408719fc707c2d778c110f11..3cba5225ea796f0d07f99217c373516bdacbb0f1 100644 |
| --- a/ui/gfx/screen_aura.cc |
| +++ b/ui/gfx/screen_aura.cc |
| @@ -58,4 +58,16 @@ gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
| return instance_->GetWindowAtCursorScreenPointImpl(); |
| } |
| +// static |
| +gfx::Size Screen::GetPrimaryMonitorSize() { |
| + 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.
|
| + return instance_->GetPrimaryMonitorSizeImpl(); |
| +} |
| + |
| +// static |
| +int Screen::GetNumMonitors() { |
| + DCHECK(instance_); |
| + return instance_->GetNumMonitorsImpl(); |
| +} |
| + |
| } // namespace gfx |