| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // "chrome/app/chrome_dll_resource.h" file. | 142 // "chrome/app/chrome_dll_resource.h" file. |
| 143 - (void)executeCommand:(int)command; | 143 - (void)executeCommand:(int)command; |
| 144 | 144 |
| 145 // Delegate method for the status bubble to query about its vertical offset. | 145 // Delegate method for the status bubble to query about its vertical offset. |
| 146 - (float)verticalOffsetForStatusBubble; | 146 - (float)verticalOffsetForStatusBubble; |
| 147 | 147 |
| 148 // Show the bookmark bubble (e.g. user just clicked on the STAR) | 148 // Show the bookmark bubble (e.g. user just clicked on the STAR) |
| 149 - (void)showBookmarkBubbleForURL:(const GURL&)url | 149 - (void)showBookmarkBubbleForURL:(const GURL&)url |
| 150 alreadyBookmarked:(BOOL)alreadyBookmarked; | 150 alreadyBookmarked:(BOOL)alreadyBookmarked; |
| 151 | 151 |
| 152 // Returns the toolbar controller. Needed by |TabContentsControllerView|. |
| 153 - (ToolbarController*)toolbarController; |
| 154 |
| 155 // Returns the infobar controller. Needed by |TabContentsControllerView|. |
| 156 - (InfoBarContainerController*)infoBarContainerController; |
| 157 |
| 152 // Returns the (lazily created) window sheet controller of this window. Used | 158 // Returns the (lazily created) window sheet controller of this window. Used |
| 153 // for the per-tab sheets. | 159 // for the per-tab sheets. |
| 154 - (GTMWindowSheetController*)sheetController; | 160 - (GTMWindowSheetController*)sheetController; |
| 155 | 161 |
| 156 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 162 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
| 157 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 163 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
| 158 | 164 |
| 159 @end | 165 @end |
| 160 | 166 |
| 161 | 167 |
| 162 @interface BrowserWindowController(TestingAPI) | 168 @interface BrowserWindowController(TestingAPI) |
| 163 | 169 |
| 164 // Put the incognito badge on the browser and adjust the tab strip | 170 // Put the incognito badge on the browser and adjust the tab strip |
| 165 // accordingly. | 171 // accordingly. |
| 166 - (void)installIncognitoBadge; | 172 - (void)installIncognitoBadge; |
| 167 | 173 |
| 168 // Allows us to initWithBrowser withOUT taking ownership of the browser. | 174 // Allows us to initWithBrowser withOUT taking ownership of the browser. |
| 169 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; | 175 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; |
| 170 | 176 |
| 171 // Return an autoreleased NSWindow suitable for fullscreen use. | 177 // Return an autoreleased NSWindow suitable for fullscreen use. |
| 172 - (NSWindow*)fullscreenWindow; | 178 - (NSWindow*)fullscreenWindow; |
| 173 | 179 |
| 174 // Return a point suitable for the topLeft for a bookmark bubble. | 180 // Return a point suitable for the topLeft for a bookmark bubble. |
| 175 - (NSPoint)topLeftForBubble; | 181 - (NSPoint)topLeftForBubble; |
| 176 | 182 |
| 177 @end // BrowserWindowController(TestingAPI) | 183 @end // BrowserWindowController(TestingAPI) |
| 178 | 184 |
| 179 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 185 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |