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

Side by Side Diff: chrome/browser/ui/panels/detached_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_DETACHED_PANEL_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 // PanelStrip OVERRIDES: 27 // PanelStrip OVERRIDES:
28 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE; 28 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE;
29 virtual void RefreshLayout() OVERRIDE; 29 virtual void RefreshLayout() OVERRIDE;
30 virtual void AddPanel(Panel* panel, 30 virtual void AddPanel(Panel* panel,
31 PositioningMask positioning_mask) OVERRIDE; 31 PositioningMask positioning_mask) OVERRIDE;
32 virtual void RemovePanel(Panel* panel) OVERRIDE; 32 virtual void RemovePanel(Panel* panel) OVERRIDE;
33 virtual void CloseAll() OVERRIDE; 33 virtual void CloseAll() OVERRIDE;
34 virtual void ResizePanelWindow( 34 virtual void ResizePanelWindow(
35 Panel* panel, 35 Panel* panel,
36 const gfx::Size& preferred_window_size) OVERRIDE; 36 const gfx::Size& preferred_window_size) OVERRIDE;
37 virtual bool CanResizePanel(const Panel* panel) const OVERRIDE; 37 virtual panel::Resizability GetPanelResizability(
38 const Panel* panel) const OVERRIDE;
38 virtual void OnPanelResizedByMouse(Panel* panel, 39 virtual void OnPanelResizedByMouse(Panel* panel,
39 const gfx::Rect& new_bounds) OVERRIDE; 40 const gfx::Rect& new_bounds) OVERRIDE;
40 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 41 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
41 virtual void OnPanelTitlebarClicked(Panel* panel, 42 virtual void OnPanelTitlebarClicked(Panel* panel,
42 panel::ClickModifier modifier) OVERRIDE; 43 panel::ClickModifier modifier) OVERRIDE;
43 virtual void ActivatePanel(Panel* panel) OVERRIDE; 44 virtual void ActivatePanel(Panel* panel) OVERRIDE;
44 virtual void MinimizePanel(Panel* panel) OVERRIDE; 45 virtual void MinimizePanel(Panel* panel) OVERRIDE;
45 virtual void RestorePanel(Panel* panel) OVERRIDE; 46 virtual void RestorePanel(Panel* panel) OVERRIDE;
46 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 47 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE;
47 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; 48 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Collection of all panels. 80 // Collection of all panels.
80 Panels panels_; 81 Panels panels_;
81 82
82 // Used to save the placement information for a panel. 83 // Used to save the placement information for a panel.
83 PanelPlacement saved_panel_placement_; 84 PanelPlacement saved_panel_placement_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip); 86 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip);
86 }; 87 };
87 88
88 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ 89 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/detached_panel_browsertest.cc ('k') | chrome/browser/ui/panels/detached_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698