Index: chrome/browser/ui/window_sizer_aura.cc |
diff --git a/chrome/browser/ui/window_sizer_aura.cc b/chrome/browser/ui/window_sizer_aura.cc |
index c8d313bed5fc764654cbbaca421f10a052d9b792..61ac5bb29bde19d165537bf816b5b399389a62d2 100644 |
--- a/chrome/browser/ui/window_sizer_aura.cc |
+++ b/chrome/browser/ui/window_sizer_aura.cc |
@@ -4,47 +4,10 @@ |
#include "chrome/browser/ui/window_sizer.h" |
-#include "base/compiler_specific.h" |
-#include "ui/gfx/screen.h" |
- |
// This doesn't matter for aura, which has different tiling. |
// static |
const int WindowSizer::kWindowTilePixels = 10; |
-// An implementation of WindowSizer::MonitorInfoProvider. This assumes a single |
-// monitor, which is currently the case. |
-class DefaultMonitorInfoProvider : public WindowSizer::MonitorInfoProvider { |
- public: |
- DefaultMonitorInfoProvider() {} |
- |
- virtual gfx::Rect GetPrimaryMonitorWorkArea() const OVERRIDE { |
- return gfx::Screen::GetMonitorWorkAreaNearestPoint(gfx::Point()); |
- } |
- |
- virtual gfx::Rect GetPrimaryMonitorBounds() const OVERRIDE { |
- return gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point()); |
- } |
- |
- virtual gfx::Rect GetMonitorWorkAreaMatching( |
- const gfx::Rect& match_rect) const OVERRIDE { |
- return gfx::Screen::GetMonitorWorkAreaNearestPoint(gfx::Point()); |
- } |
- |
- virtual void UpdateWorkAreas() OVERRIDE { |
- work_areas_.clear(); |
- work_areas_.push_back(GetPrimaryMonitorBounds()); |
- } |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(DefaultMonitorInfoProvider); |
-}; |
- |
-// static |
-WindowSizer::MonitorInfoProvider* |
-WindowSizer::CreateDefaultMonitorInfoProvider() { |
- return new DefaultMonitorInfoProvider(); |
-} |
- |
// static |
gfx::Point WindowSizer::GetDefaultPopupOrigin(const gfx::Size& size) { |
// TODO(oshima):This is used to control panel/popups, and this may not be |