| OLD | NEW |
| 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_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <Carbon/Carbon.h> | 8 #include <Carbon/Carbon.h> |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 - (BOOL)mustShowFullscreenToolbar; | 101 - (BOOL)mustShowFullscreenToolbar; |
| 102 | 102 |
| 103 // Called by the BrowserWindowController to update toolbar frame. | 103 // Called by the BrowserWindowController to update toolbar frame. |
| 104 - (void)updateToolbarFrame:(NSRect)frame; | 104 - (void)updateToolbarFrame:(NSRect)frame; |
| 105 | 105 |
| 106 // Returns YES if the browser in in fullscreen. | 106 // Returns YES if the browser in in fullscreen. |
| 107 - (BOOL)isInFullscreen; | 107 - (BOOL)isInFullscreen; |
| 108 | 108 |
| 109 // Updates the toolbar style. If the style has changed, then the toolbar will | 109 // Updates the toolbar style. If the style has changed, then the toolbar will |
| 110 // relayout. | 110 // relayout. |
| 111 - (void)updateToolbarStyle; | 111 - (void)updateToolbarStyleExitingTabFullscreen:(BOOL)isExitingTabFullscreen; |
| 112 | 112 |
| 113 // Updates the toolbar by updating the layout, menubar and dock. | 113 // Updates the toolbar by updating the layout, menubar and dock. |
| 114 - (void)updateToolbar; | 114 - (void)updateToolbar; |
| 115 | 115 |
| 116 // Returns |browserController_|. | 116 // Returns |browserController_|. |
| 117 - (BrowserWindowController*)browserWindowController; | 117 - (BrowserWindowController*)browserWindowController; |
| 118 | 118 |
| 119 // Returns the object in |visibilityLockController_|; | 119 // Returns the object in |visibilityLockController_|; |
| 120 - (FullscreenToolbarVisibilityLockController*)visibilityLockController; | 120 - (FullscreenToolbarVisibilityLockController*)visibilityLockController; |
| 121 | 121 |
| 122 @end | 122 @end |
| 123 | 123 |
| 124 // Private methods exposed for testing. | 124 // Private methods exposed for testing. |
| 125 @interface FullscreenToolbarController (ExposedForTesting) | 125 @interface FullscreenToolbarController (ExposedForTesting) |
| 126 // Adjusts the AppKit Fullscreen options of the application. | 126 // Adjusts the AppKit Fullscreen options of the application. |
| 127 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; | 127 - (void)setSystemFullscreenModeTo:(base::mac::FullScreenMode)mode; |
| 128 | 128 |
| 129 // Callback for menu bar animations. | 129 // Callback for menu bar animations. |
| 130 - (void)setMenuBarRevealProgress:(CGFloat)progress; | 130 - (void)setMenuBarRevealProgress:(CGFloat)progress; |
| 131 | 131 |
| 132 @end | 132 @end |
| 133 | 133 |
| 134 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ | 134 #endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_TOOLBAR_CONTROLLER_H_ |
| OLD | NEW |