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

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

Issue 9956145: Remove wrench button from panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 NSAnimationDelegate, 45 NSAnimationDelegate,
46 BrowserCommandExecutor> { 46 BrowserCommandExecutor> {
47 @private 47 @private
48 IBOutlet PanelTitlebarViewCocoa* titlebar_view_; 48 IBOutlet PanelTitlebarViewCocoa* titlebar_view_;
49 scoped_ptr<PanelBrowserWindowCocoa> windowShim_; 49 scoped_ptr<PanelBrowserWindowCocoa> windowShim_;
50 scoped_nsobject<NSString> pendingWindowTitle_; 50 scoped_nsobject<NSString> pendingWindowTitle_;
51 scoped_nsobject<TabContentsController> contentsController_; 51 scoped_nsobject<TabContentsController> contentsController_;
52 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs 52 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs
53 // more then just |release| to terminate. 53 // more then just |release| to terminate.
54 BOOL animateOnBoundsChange_; 54 BOOL animateOnBoundsChange_;
55 ScopedCrTrackingArea windowTrackingArea_;
56 BOOL throbberShouldSpin_; 55 BOOL throbberShouldSpin_;
57 BOOL playingMinimizeAnimation_; 56 BOOL playingMinimizeAnimation_;
58 float animationStopToShowTitlebarOnly_; 57 float animationStopToShowTitlebarOnly_;
59 BOOL canBecomeKeyWindow_; 58 BOOL canBecomeKeyWindow_;
60 scoped_nsobject<NSView> overlayView_; 59 scoped_nsobject<NSView> overlayView_;
61 } 60 }
62 61
63 // Load the browser window nib and do any Cocoa-specific initialization. 62 // Load the browser window nib and do any Cocoa-specific initialization.
64 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window; 63 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window;
65 64
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 // Invoked when user clicks on the titlebar. Attempts to flip the 115 // Invoked when user clicks on the titlebar. Attempts to flip the
117 // Minimized/Restored states. 116 // Minimized/Restored states.
118 - (void)onTitlebarMouseClicked:(int)modifierFlags; 117 - (void)onTitlebarMouseClicked:(int)modifierFlags;
119 118
120 // Executes the command in the context of the current browser. 119 // Executes the command in the context of the current browser.
121 // |command| is an integer value containing one of the constants defined in the 120 // |command| is an integer value containing one of the constants defined in the
122 // "chrome/app/chrome_command_ids.h" file. 121 // "chrome/app/chrome_command_ids.h" file.
123 - (void)executeCommand:(int)command; 122 - (void)executeCommand:(int)command;
124 123
125 // Invokes the settings menu when the settings button is pressed.
126 - (void)runSettingsMenu:(NSView*)button;
127
128 // NSAnimationDelegate method, invoked when bounds animation is finished. 124 // NSAnimationDelegate method, invoked when bounds animation is finished.
129 - (void)animationDidEnd:(NSAnimation*)animation; 125 - (void)animationDidEnd:(NSAnimation*)animation;
130 // Terminates current bounds animation, if any. 126 // Terminates current bounds animation, if any.
131 - (void)terminateBoundsAnimation; 127 - (void)terminateBoundsAnimation;
132 128
133 - (BOOL)isAnimatingBounds; 129 - (BOOL)isAnimatingBounds;
134 130
135 // Removes the Key status from the panel to some other window. 131 // Removes the Key status from the panel to some other window.
136 - (void)deactivate; 132 - (void)deactivate;
137 133
(...skipping 20 matching lines...) Expand all
158 // Turns on user-resizable corners/sides indications and enables live resize. 154 // Turns on user-resizable corners/sides indications and enables live resize.
159 - (void)enableResizeByMouse:(BOOL)enable; 155 - (void)enableResizeByMouse:(BOOL)enable;
160 156
161 // In certain cases (when in a Docked strip for example) we want 157 // In certain cases (when in a Docked strip for example) we want
162 // the standard behavior of activating the app when clicking on the titlebar 158 // the standard behavior of activating the app when clicking on the titlebar
163 // to be disabled. This way, user can minimize the panel w/o activating it. 159 // to be disabled. This way, user can minimize the panel w/o activating it.
164 - (BOOL)isActivationByClickingTitlebarEnabled; 160 - (BOOL)isActivationByClickingTitlebarEnabled;
165 @end // @interface PanelWindowController 161 @end // @interface PanelWindowController
166 162
167 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 163 #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