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

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

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure that the latest version is uploaded. Created 8 years, 9 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 30 matching lines...) Expand all
41 // area being changed or a panel being closed. 41 // area being changed or a panel being closed.
42 virtual void RefreshLayout() OVERRIDE; 42 virtual void RefreshLayout() OVERRIDE;
43 43
44 // Adds a panel to the strip. The panel may be a newly created panel or one 44 // Adds a panel to the strip. The panel may be a newly created panel or one
45 // that is transitioning from another grouping of panels. 45 // that is transitioning from another grouping of panels.
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,
52 AutoResizeState auto_resize_state) OVERRIDE;
52 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 53 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
53 virtual void ActivatePanel(Panel* panel) OVERRIDE; 54 virtual void ActivatePanel(Panel* panel) OVERRIDE;
54 virtual void MinimizePanel(Panel* panel) OVERRIDE; 55 virtual void MinimizePanel(Panel* panel) OVERRIDE;
55 virtual void RestorePanel(Panel* panel) OVERRIDE; 56 virtual void RestorePanel(Panel* panel) OVERRIDE;
56 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; 57 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE;
57 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; 58 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE;
58 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; 59 virtual void StartDraggingPanel(Panel* panel) OVERRIDE;
59 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; 60 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE;
60 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; 61 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE;
61 62
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Absolute minimum width and height for panels, including non-client area. 186 // Absolute minimum width and height for panels, including non-client area.
186 // 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
187 // recognisable titlebar. 188 // recognisable titlebar.
188 static const int kPanelMinWidth; 189 static const int kPanelMinWidth;
189 static const int kPanelMinHeight; 190 static const int kPanelMinHeight;
190 191
191 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); 192 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip);
192 }; 193 };
193 194
194 #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