| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Browser | 8 // A class acting as the Objective-C controller for the Browser |
| 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 toolbar and, by virtue of being a | 10 // code. Each window has a single toolbar and, by virtue of being a |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 - (void)infoBarResized:(float)newHeight; | 129 - (void)infoBarResized:(float)newHeight; |
| 130 | 130 |
| 131 // The user changed the theme. | 131 // The user changed the theme. |
| 132 - (void)userChangedTheme; | 132 - (void)userChangedTheme; |
| 133 | 133 |
| 134 // Executes the command in the context of the current browser. | 134 // Executes the command in the context of the current browser. |
| 135 // |command| is an integer value containing one of the constants defined in the | 135 // |command| is an integer value containing one of the constants defined in the |
| 136 // "chrome/app/chrome_dll_resource.h" file. | 136 // "chrome/app/chrome_dll_resource.h" file. |
| 137 - (void)executeCommand:(int)command; | 137 - (void)executeCommand:(int)command; |
| 138 | 138 |
| 139 // Delegate method for the status bubble to query about its vertical offset. |
| 140 - (float)verticalOffsetForStatusBubble; |
| 141 |
| 139 @end | 142 @end |
| 140 | 143 |
| 141 | 144 |
| 142 @interface BrowserWindowController(TestingAPI) | 145 @interface BrowserWindowController(TestingAPI) |
| 143 | 146 |
| 144 // Allows us to initWithBrowser withOUT taking ownership of the browser. | 147 // Allows us to initWithBrowser withOUT taking ownership of the browser. |
| 145 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; | 148 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; |
| 146 | 149 |
| 147 // Return an autoreleased NSWindow suitable for fullscreen use. | 150 // Return an autoreleased NSWindow suitable for fullscreen use. |
| 148 - (NSWindow*)fullscreenWindow; | 151 - (NSWindow*)fullscreenWindow; |
| 149 | 152 |
| 150 @end // BrowserWindowController(TestingAPI) | 153 @end // BrowserWindowController(TestingAPI) |
| 151 | 154 |
| 152 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 155 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |