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

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

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_strip.h
diff --git a/chrome/browser/ui/panels/panel_strip.h b/chrome/browser/ui/panels/panel_strip.h
index 7b0bced6fc2a6b29013fbc85f8db791ffa6d87dd..97028d65f442c93bbdc13372e900a559542f6dae 100644
--- a/chrome/browser/ui/panels/panel_strip.h
+++ b/chrome/browser/ui/panels/panel_strip.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
#pragma once
+#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
class Panel;
@@ -34,6 +35,11 @@ class PanelStrip {
// Adds |panel| to the collection of panels.
virtual void AddPanel(Panel* panel) = 0;
+ // Adds |panel| to the collection of panels and positions it at or close to
+ // |position| that is in screen coordinates. It is up to the strip itself to
+ // decide the final position that the panel can be.
+ virtual void AddPanelAtPosition(Panel* panel, const gfx::Point& position) = 0;
jennb 2012/03/01 00:33:38 Is the origin of the panel placed close to |positi
jianli 2012/03/02 22:42:43 Renamed this method to AddDraggingPanel to mean it
+
// Removes |panel| from the collection of panels. Invoked asynchronously
// after a panel has been closed.
// Returns |false| if the panel is not in the strip.

Powered by Google App Engine
This is Rietveld 408576698