| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |