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

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: removed IsActive checks from new test 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Click behavior may be modified as indicated by |modifier|. 83 // Click behavior may be modified as indicated by |modifier|.
84 virtual void OnPanelTitlebarClicked(Panel* panel, 84 virtual void OnPanelTitlebarClicked(Panel* panel,
85 panel::ClickModifier modifier) = 0; 85 panel::ClickModifier modifier) = 0;
86 86
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 // Updates the display to show all panels in the strip as minimized/restored.
98 virtual void MinimizeAll() = 0;
99 virtual void RestoreAll() = 0;
100
97 virtual bool CanMinimizePanel(const Panel* panel) const = 0; 101 virtual bool CanMinimizePanel(const Panel* panel) const = 0;
98 virtual bool IsPanelMinimized(const Panel* panel) const = 0; 102 virtual bool IsPanelMinimized(const Panel* panel) const = 0;
99 103
100 // Saves/restores/discards the placement information of |panel|. This is 104 // Saves/restores/discards the placement information of |panel|. This is
101 // useful in bringing back the dragging panel to its original positioning 105 // useful in bringing back the dragging panel to its original positioning
102 // when the drag is cancelled. After the placement information is saved, 106 // when the drag is cancelled. After the placement information is saved,
103 // the caller should only call one of RestorePanelToSavedPlacement or 107 // the caller should only call one of RestorePanelToSavedPlacement or
104 // DiscardSavedPanelPlacement. 108 // DiscardSavedPanelPlacement.
105 virtual void SavePanelPlacement(Panel* panel) = 0; 109 virtual void SavePanelPlacement(Panel* panel) = 0;
106 virtual void RestorePanelToSavedPlacement() = 0; 110 virtual void RestorePanelToSavedPlacement() = 0;
(...skipping 27 matching lines...) Expand all
134 virtual void UpdatePanelOnStripChange(Panel* panel) = 0; 138 virtual void UpdatePanelOnStripChange(Panel* panel) = 0;
135 139
136 protected: 140 protected:
137 explicit PanelStrip(Type type); 141 explicit PanelStrip(Type type);
138 virtual ~PanelStrip(); 142 virtual ~PanelStrip();
139 143
140 const Type type_; // Type of this panel strip. 144 const Type type_; // Type of this panel strip.
141 }; 145 };
142 146
143 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_ 147 #endif // CHROME_BROWSER_UI_PANELS_PANEL_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698