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

Side by Side Diff: chrome/browser/ui/panels/docked_panel_strip.h

Issue 9403035: Refactor intra-strip panel drags by introducing PanelDragController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybot 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void AddPanel(Panel* panel) OVERRIDE; 46 virtual void AddPanel(Panel* panel) OVERRIDE;
47 virtual bool RemovePanel(Panel* panel) OVERRIDE; 47 virtual bool RemovePanel(Panel* panel) OVERRIDE;
48 virtual void CloseAll() OVERRIDE; 48 virtual void CloseAll() OVERRIDE;
49 virtual void ResizePanelWindow( 49 virtual void ResizePanelWindow(
50 Panel* panel, 50 Panel* panel,
51 const gfx::Size& preferred_window_size) OVERRIDE; 51 const gfx::Size& preferred_window_size) OVERRIDE;
52 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 52 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
53 virtual void ActivatePanel(Panel* panel) OVERRIDE; 53 virtual void ActivatePanel(Panel* panel) OVERRIDE;
54 virtual void MinimizePanel(Panel* panel) OVERRIDE; 54 virtual void MinimizePanel(Panel* panel) OVERRIDE;
55 virtual void RestorePanel(Panel* panel) OVERRIDE; 55 virtual void RestorePanel(Panel* panel) OVERRIDE;
56 56 virtual bool CanDragPanel(Panel* panel) const OVERRIDE;
57 // Drags the given panel. 57 virtual void StartDraggingPanel(Panel* panel) OVERRIDE;
58 void StartDragging(Panel* panel); 58 virtual void DragPanel(int delta_x, int delta_y) OVERRIDE;
59 void Drag(int delta_x); 59 virtual void EndDraggingPanel(bool cancelled) OVERRIDE;
60 void EndDragging(bool cancelled);
61 60
62 // Invoked when a panel's expansion state changes. 61 // Invoked when a panel's expansion state changes.
63 void OnPanelExpansionStateChanged(Panel* panel); 62 void OnPanelExpansionStateChanged(Panel* panel);
64 63
65 // Returns true if we should bring up the titlebars, given the current mouse 64 // Returns true if we should bring up the titlebars, given the current mouse
66 // point. 65 // point.
67 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; 66 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const;
68 67
69 // Brings up or down the titlebars for all minimized panels. 68 // Brings up or down the titlebars for all minimized panels.
70 void BringUpOrDownTitlebars(bool bring_up); 69 void BringUpOrDownTitlebars(bool bring_up);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Absolute minimum width and height for panels, including non-client area. 186 // Absolute minimum width and height for panels, including non-client area.
188 // Should only be big enough to accomodate a close button on the reasonably 187 // Should only be big enough to accomodate a close button on the reasonably
189 // recognisable titlebar. 188 // recognisable titlebar.
190 static const int kPanelMinWidth; 189 static const int kPanelMinWidth;
191 static const int kPanelMinHeight; 190 static const int kPanelMinHeight;
192 191
193 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); 192 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip);
194 }; 193 };
195 194
196 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 195 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698