Index: chrome/browser/ui/window_sizer/window_sizer.cc |
diff --git a/chrome/browser/ui/window_sizer/window_sizer.cc b/chrome/browser/ui/window_sizer/window_sizer.cc |
index 57d0426147fed45c8d9cf955010bb3284c397fbb..6084e481e5ec9e4fa5892a2874b187b6300e0793 100644 |
--- a/chrome/browser/ui/window_sizer/window_sizer.cc |
+++ b/chrome/browser/ui/window_sizer/window_sizer.cc |
@@ -27,14 +27,18 @@ class DefaultMonitorInfoProvider : public MonitorInfoProvider { |
public: |
// Overridden from MonitorInfoProvider: |
virtual gfx::Rect GetPrimaryDisplayWorkArea() const OVERRIDE { |
- return gfx::Screen::GetPrimaryDisplay().work_area(); |
+ // TODO(scottmg): NativeScreen is wrong. http://crbug.com/133312 |
+ return gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().work_area(); |
} |
virtual gfx::Rect GetPrimaryDisplayBounds() const OVERRIDE { |
- return gfx::Screen::GetPrimaryDisplay().bounds(); |
+ // TODO(scottmg): NativeScreen is wrong. http://crbug.com/133312 |
+ return gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().bounds(); |
} |
virtual gfx::Rect GetMonitorWorkAreaMatching( |
const gfx::Rect& match_rect) const OVERRIDE { |
- return gfx::Screen::GetDisplayMatching(match_rect).work_area(); |
+ // TODO(scottmg): NativeScreen is wrong. http://crbug.com/133312 |
+ return gfx::Screen::GetNativeScreen()->GetDisplayMatching( |
+ match_rect).work_area(); |
} |
oshima
2012/10/10 17:58:23
Looks like passing native window (or screen) from
scottmg
2012/10/10 19:04:47
Done.
|
}; |