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

Side by Side Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.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_WINDOW_CONTROLLER_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
7 7
8 // A class acting as the Objective-C controller for the Panel window 8 // A class acting as the Objective-C controller for the Panel window
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single titlebar and is managed/owned by Panel. 10 // code. Each window has a single titlebar and is managed/owned by Panel.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // called once per PanelWindowControllerCocoa. 77 // called once per PanelWindowControllerCocoa.
78 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; 78 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController;
79 79
80 // Initiate the closing of the panel, starting from the platform-independent 80 // Initiate the closing of the panel, starting from the platform-independent
81 // layer. This will take care of PanelManager, other panels and close the 81 // layer. This will take care of PanelManager, other panels and close the
82 // native window at the end. 82 // native window at the end.
83 - (void)closePanel; 83 - (void)closePanel;
84 84
85 // Minimize/Restore the panel or all panels, depending on the modifier. 85 // Minimize/Restore the panel or all panels, depending on the modifier.
86 // Invoked when the minimize/restore button is clicked. 86 // Invoked when the minimize/restore button is clicked.
87 - (void)minimizePanel:(int)modifierFlags; 87 - (void)minimizeButtonClicked:(int)modifierFlags;
88 - (void)restorePanel:(int)modifierFlags; 88 - (void)restoreButtonClicked:(int)modifierFlags;
89 89
90 // Uses nonblocking animation for moving the Panels. It's especially 90 // Uses nonblocking animation for moving the Panels. It's especially
91 // important in case of dragging a Panel when other Panels should 'slide out', 91 // important in case of dragging a Panel when other Panels should 'slide out',
92 // indicating the potential drop slot. 92 // indicating the potential drop slot.
93 // |frame| is in screen coordinates, same as [window frame]. 93 // |frame| is in screen coordinates, same as [window frame].
94 // |animate| controls if the bounds animation is needed or not. 94 // |animate| controls if the bounds animation is needed or not.
95 - (void)setPanelFrame:(NSRect)frame 95 - (void)setPanelFrame:(NSRect)frame
96 animate:(BOOL)animate; 96 animate:(BOOL)animate;
97 97
98 // Used by PanelTitlebarViewCocoa when user rearranges the Panels by dragging. 98 // Used by PanelTitlebarViewCocoa when user rearranges the Panels by dragging.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 - (void)ensureFullyVisible; 145 - (void)ensureFullyVisible;
146 146
147 - (void)updateWindowLevel; 147 - (void)updateWindowLevel;
148 148
149 // Turns on user-resizable corners/sides indications and enables live resize. 149 // Turns on user-resizable corners/sides indications and enables live resize.
150 - (void)enableResizeByMouse:(BOOL)enable; 150 - (void)enableResizeByMouse:(BOOL)enable;
151 151
152 @end // @interface PanelWindowController 152 @end // @interface PanelWindowController
153 153
154 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 154 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698