Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8448)

Unified Diff: chrome/browser/ui/panels/panel_resize_controller.h

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/ui/panels/panel_resize_browsertest.cc ('k') | chrome/browser/ui/panels/panel_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698