| Index: chrome/browser/ui/panels/docked_panel_strip.h
|
| diff --git a/chrome/browser/ui/panels/docked_panel_strip.h b/chrome/browser/ui/panels/docked_panel_strip.h
|
| index 55d6f54798b3e055765cb1ac789797434be16ee1..6636749cc4a88ec23979cdfe7f3288eeb0e59158 100644
|
| --- a/chrome/browser/ui/panels/docked_panel_strip.h
|
| +++ b/chrome/browser/ui/panels/docked_panel_strip.h
|
| @@ -53,11 +53,10 @@ class DockedPanelStrip : public PanelStrip,
|
| virtual void ActivatePanel(Panel* panel) OVERRIDE;
|
| virtual void MinimizePanel(Panel* panel) OVERRIDE;
|
| virtual void RestorePanel(Panel* panel) OVERRIDE;
|
| -
|
| - // Drags the given panel.
|
| - void StartDragging(Panel* panel);
|
| - void Drag(int delta_x);
|
| - void EndDragging(bool cancelled);
|
| + virtual bool CanDragPanel(Panel* panel) const OVERRIDE;
|
| + virtual void StartDraggingPanel(Panel* panel) OVERRIDE;
|
| + virtual void DragPanel(int delta_x, int delta_y) OVERRIDE;
|
| + virtual void EndDraggingPanel(bool cancelled) OVERRIDE;
|
|
|
| // Invoked when a panel's expansion state changes.
|
| void OnPanelExpansionStateChanged(Panel* panel);
|
| @@ -80,7 +79,6 @@ class DockedPanelStrip : public PanelStrip,
|
| int num_panels() const { return panels_.size(); }
|
| const Panels& panels() const { return panels_; }
|
|
|
| - bool is_dragging_panel() const;
|
| gfx::Rect display_area() const { return display_area_; }
|
|
|
| int GetMaxPanelWidth() const;
|
| @@ -113,17 +111,9 @@ class DockedPanelStrip : public PanelStrip,
|
| void IncrementMinimizedPanels();
|
| void DecrementMinimizedPanels();
|
|
|
| - // Handles all the panels that're delayed to be removed.
|
| - void DelayedRemove();
|
| -
|
| - // Does the actual remove. Caller is responsible for rearranging
|
| - // the panel strip if necessary.
|
| - // Returns |false| if panel is not in the strip.
|
| - bool DoRemove(Panel* panel);
|
| -
|
| // Help functions to drag the given panel.
|
| - void DragLeft();
|
| - void DragRight();
|
| + void DragLeft(Panel* dragging_panel);
|
| + void DragRight(Panel* dragging_panel);
|
|
|
| // Does the real job of bringing up or down the titlebars.
|
| void DoBringUpOrDownTitlebars(bool bring_up);
|
| @@ -147,10 +137,6 @@ class DockedPanelStrip : public PanelStrip,
|
|
|
| Panels panels_;
|
|
|
| - // Stores the panels that are pending to remove. We want to delay the removal
|
| - // when we're in the process of the dragging.
|
| - std::vector<Panel*> panels_pending_to_remove_;
|
| -
|
| // Stores newly created panels that have a temporary layout until they
|
| // are moved to overflow after a delay.
|
| std::set<Panel*> panels_in_temporary_layout_;
|
| @@ -162,8 +148,7 @@ class DockedPanelStrip : public PanelStrip,
|
| // moving panels to overflow area to make room for a panel in this strip.
|
| bool disable_layout_refresh_;
|
|
|
| - // Panel to drag.
|
| - Panel* dragging_panel_;
|
| + // Iterator of panel being dragged.
|
| Panels::iterator dragging_panel_iterator_;
|
|
|
| // Original x coordinate of the panel to drag. This is used to get back to
|
|
|