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

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

Issue 8773030: Implement 3-stage minimize animation for Panels on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lowered close button 1 px Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 @private 45 @private
46 IBOutlet PanelTitlebarViewCocoa* titlebar_view_; 46 IBOutlet PanelTitlebarViewCocoa* titlebar_view_;
47 scoped_ptr<PanelBrowserWindowCocoa> windowShim_; 47 scoped_ptr<PanelBrowserWindowCocoa> windowShim_;
48 scoped_nsobject<NSString> pendingWindowTitle_; 48 scoped_nsobject<NSString> pendingWindowTitle_;
49 scoped_nsobject<TabContentsController> contentsController_; 49 scoped_nsobject<TabContentsController> contentsController_;
50 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs 50 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs
51 // more then just |release| to terminate. 51 // more then just |release| to terminate.
52 BOOL animateOnBoundsChange_; 52 BOOL animateOnBoundsChange_;
53 ScopedCrTrackingArea windowTrackingArea_; 53 ScopedCrTrackingArea windowTrackingArea_;
54 BOOL throbberShouldSpin_; 54 BOOL throbberShouldSpin_;
55 BOOL playingMinimizeAnimation_;
56 float animationSpeedThreshold_;
55 } 57 }
56 58
57 // Load the browser window nib and do any Cocoa-specific initialization. 59 // Load the browser window nib and do any Cocoa-specific initialization.
58 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window; 60 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window;
59 61
60 - (ui::ThemeProvider*)themeProvider; 62 - (ui::ThemeProvider*)themeProvider;
61 - (ThemedWindowStyle)themedWindowStyle; 63 - (ThemedWindowStyle)themedWindowStyle;
62 - (NSPoint)themePatternPhase; 64 - (NSPoint)themePatternPhase;
63 65
64 - (void)tabInserted:(TabContents*)contents; 66 - (void)tabInserted:(TabContents*)contents;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Removes the Key status from the panel to some other window. 127 // Removes the Key status from the panel to some other window.
126 - (void)deactivate; 128 - (void)deactivate;
127 129
128 // Helper for NSWindow, returns NO for minimized panels in some cases, so they 130 // Helper for NSWindow, returns NO for minimized panels in some cases, so they
129 // are not un-minimized when another panel is minimized. 131 // are not un-minimized when another panel is minimized.
130 - (BOOL)canBecomeKeyWindow; 132 - (BOOL)canBecomeKeyWindow;
131 133
132 @end // @interface PanelWindowController 134 @end // @interface PanelWindowController
133 135
134 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 136 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698