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

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

Issue 11669018: Support dragging panels to stack and snap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS build for relanding Created 7 years, 11 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
« no previous file with comments | « chrome/browser/ui/panels/native_panel_stack.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.h
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index 70c9c39c3a5eda87a5ef4c904b9021b8579937b4..3251b60b0d850304a06564ed3284f7727b6e8171 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -27,6 +27,7 @@ class PanelCollection;
class PanelHost;
class PanelManager;
class Profile;
+class StackedPanelCollection;
namespace content {
class WebContents;
@@ -88,6 +89,8 @@ class Panel : public BaseWindow,
CommandUpdater* command_updater();
Profile* profile() const;
+ const extensions::Extension* GetExtension() const;
+
// Returns web contents of the panel, if any. There may be none if web
// contents have not been added to the panel yet.
content::WebContents* GetWebContents() const;
@@ -176,6 +179,8 @@ class Panel : public BaseWindow,
collection_ = new_collection;
}
+ StackedPanelCollection* stack() const;
+
ExpansionState expansion_state() const { return expansion_state_; }
const gfx::Size& min_size() const { return min_size_; }
const gfx::Size& max_size() const { return max_size_; }
@@ -295,6 +300,9 @@ class Panel : public BaseWindow,
// Updates UI to reflect that the web cotents receives the focus.
void WebContentsFocused(content::WebContents* contents);
+ // Moves the panel by delta instantly.
+ void MoveByInstantly(const gfx::Vector2d& delta_origin);
+
protected:
// Panel can only be created using PanelManager::CreatePanel() or subclass.
// |app_name| is the default title for Panels when the page content does not
@@ -325,8 +333,6 @@ class Panel : public BaseWindow,
// Configures the renderer for auto resize (if auto resize is enabled).
void ConfigureAutoResize(content::WebContents* web_contents);
- const extensions::Extension* GetExtension() const;
-
// Load the app's image, firing a load state change when loaded.
void UpdateAppIcon();
« no previous file with comments | « chrome/browser/ui/panels/native_panel_stack.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698