Index: chrome/browser/ui/panels/panel_resize_controller.h |
diff --git a/chrome/browser/ui/panels/panel_resize_controller.h b/chrome/browser/ui/panels/panel_resize_controller.h |
deleted file mode 100644 |
index 12c3b1894bcb4bbdc314c600a030ca53022a1726..0000000000000000000000000000000000000000 |
--- a/chrome/browser/ui/panels/panel_resize_controller.h |
+++ /dev/null |
@@ -1,60 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |
-#define CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |
- |
-#include <set> |
- |
-#include "base/macros.h" |
-#include "chrome/browser/ui/panels/panel_constants.h" |
-#include "ui/gfx/geometry/point.h" |
-#include "ui/gfx/geometry/rect.h" |
- |
-class Panel; |
-class PanelManager; |
-namespace gfx { |
- class Rect; |
-} |
- |
-// Responsible for handling resize operations initiated for all panels. |
-class PanelResizeController { |
- public: |
- explicit PanelResizeController(PanelManager* panel_manager); |
- |
- // Resize the given panel. |
- // |mouse_location| is in screen coordinate system. |
- void StartResizing(Panel* panel, |
- const gfx::Point& mouse_location, |
- int component); |
- void Resize(const gfx::Point& mouse_location); |
- |
- // Returns the panel that was resized. |
- Panel* EndResizing(bool cancelled); |
- |
- // Asynchronous confirmation of panel having been closed. |
- void OnPanelClosed(Panel* panel); |
- |
- bool IsResizing() const { return resizing_panel_ != NULL; } |
- |
- private: |
- PanelManager* panel_manager_; // Weak, owns us. |
- |
- // Panel currently being resized. |
- Panel* resizing_panel_; |
- |
- // The part of the border used to resize the window. |
- int component_; |
- |
- // The mouse location, in screen coordinates, when StartResizing |
- // previously called. |
- gfx::Point mouse_location_at_start_; |
- |
- // Bounds to restore the panel to if resize is cancelled. |
- gfx::Rect bounds_at_start_; |
- |
- DISALLOW_COPY_AND_ASSIGN(PanelResizeController); |
-}; |
- |
-#endif // CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |