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

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

Issue 10066032: Enable user resizing for docked Panels (GTK and Mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 8 years, 8 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 46 virtual void AddPanel(Panel* panel,
47 PositioningMask positioning_mask) OVERRIDE; 47 PositioningMask positioning_mask) OVERRIDE;
48 virtual void RemovePanel(Panel* panel) OVERRIDE; 48 virtual void RemovePanel(Panel* panel) OVERRIDE;
49 virtual void CloseAll() OVERRIDE; 49 virtual void CloseAll() OVERRIDE;
50 virtual void ResizePanelWindow( 50 virtual void ResizePanelWindow(
51 Panel* panel, 51 Panel* panel,
52 const gfx::Size& preferred_window_size) OVERRIDE; 52 const gfx::Size& preferred_window_size) OVERRIDE;
53 virtual bool CanResizePanel(const Panel* panel) const OVERRIDE; 53 virtual panel::Resizability GetPanelResizability(
54 const Panel* panel) const OVERRIDE;
54 virtual void OnPanelResizedByMouse(Panel* panel, 55 virtual void OnPanelResizedByMouse(Panel* panel,
55 const gfx::Rect& new_bounds) OVERRIDE; 56 const gfx::Rect& new_bounds) OVERRIDE;
56 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 57 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
57 virtual void OnPanelTitlebarClicked(Panel* panel, 58 virtual void OnPanelTitlebarClicked(Panel* panel,
58 panel::ClickModifier modifier) OVERRIDE; 59 panel::ClickModifier modifier) OVERRIDE;
59 virtual void ActivatePanel(Panel* panel) OVERRIDE; 60 virtual void ActivatePanel(Panel* panel) OVERRIDE;
60 virtual void MinimizePanel(Panel* panel) OVERRIDE; 61 virtual void MinimizePanel(Panel* panel) OVERRIDE;
61 virtual void RestorePanel(Panel* panel) OVERRIDE; 62 virtual void RestorePanel(Panel* panel) OVERRIDE;
62 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 63 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE;
63 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; 64 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Absolute minimum width and height for panels, including non-client area. 213 // Absolute minimum width and height for panels, including non-client area.
213 // Should only be big enough to accomodate a close button on the reasonably 214 // Should only be big enough to accomodate a close button on the reasonably
214 // recognisable titlebar. 215 // recognisable titlebar.
215 static const int kPanelMinWidth; 216 static const int kPanelMinWidth;
216 static const int kPanelMinHeight; 217 static const int kPanelMinHeight;
217 218
218 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); 219 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip);
219 }; 220 };
220 221
221 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ 222 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/detached_panel_strip.cc ('k') | chrome/browser/ui/panels/docked_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698