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

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

Issue 10173035: Add key modifier on minimize/restore button click to minimize/restore all Panels for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_PANEL_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/panels/panel_constants.h" 9 #include "chrome/browser/ui/panels/panel_constants.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Called when a panel in the strip becomes active or inactive. 87 // Called when a panel in the strip becomes active or inactive.
88 virtual void OnPanelActiveStateChanged(Panel* panel) = 0; 88 virtual void OnPanelActiveStateChanged(Panel* panel) = 0;
89 89
90 // Updates the display to show |panel| as active. 90 // Updates the display to show |panel| as active.
91 virtual void ActivatePanel(Panel* panel) = 0; 91 virtual void ActivatePanel(Panel* panel) = 0;
92 92
93 // Updates the display to show |panel| as minimized/restored. 93 // Updates the display to show |panel| as minimized/restored.
94 virtual void MinimizePanel(Panel* panel) = 0; 94 virtual void MinimizePanel(Panel* panel) = 0;
95 virtual void RestorePanel(Panel* panel) = 0; 95 virtual void RestorePanel(Panel* panel) = 0;
96 96
97 virtual void MinimizeAll() = 0;
jianli 2012/04/26 18:06:57 Please add some comment for these 2 methods.
jennb 2012/04/27 00:30:11 Done.
98 virtual void RestoreAll() = 0;
99
97 virtual bool CanMinimizePanel(const Panel* panel) const = 0; 100 virtual bool CanMinimizePanel(const Panel* panel) const = 0;
98 virtual bool IsPanelMinimized(const Panel* panel) const = 0; 101 virtual bool IsPanelMinimized(const Panel* panel) const = 0;
99 102
100 // Saves/restores/discards the placement information of |panel|. This is 103 // Saves/restores/discards the placement information of |panel|. This is
101 // useful in bringing back the dragging panel to its original positioning 104 // useful in bringing back the dragging panel to its original positioning
102 // when the drag is cancelled. After the placement information is saved, 105 // when the drag is cancelled. After the placement information is saved,
103 // the caller should only call one of RestorePanelToSavedPlacement or 106 // the caller should only call one of RestorePanelToSavedPlacement or
104 // DiscardSavedPanelPlacement. 107 // DiscardSavedPanelPlacement.
105 virtual void SavePanelPlacement(Panel* panel) = 0; 108 virtual void SavePanelPlacement(Panel* panel) = 0;
106 virtual void RestorePanelToSavedPlacement() = 0; 109 virtual void RestorePanelToSavedPlacement() = 0;
(...skipping 27 matching lines...) Expand all
134 virtual void UpdatePanelOnStripChange(Panel* panel) = 0; 137 virtual void UpdatePanelOnStripChange(Panel* panel) = 0;
135 138
136 protected: 139 protected:
137 explicit PanelStrip(Type type); 140 explicit PanelStrip(Type type);
138 virtual ~PanelStrip(); 141 virtual ~PanelStrip();
139 142
140 const Type type_; // Type of this panel strip. 143 const Type type_; // Type of this panel strip.
141 }; 144 };
142 145
143 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_ 146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698