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_BROWSER_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // A class acting as the Objective-C controller for the Browser | 9 // A class acting as the Objective-C controller for the Browser |
10 // object. Handles interactions between Cocoa and the cross-platform | 10 // object. Handles interactions between Cocoa and the cross-platform |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 - (DownloadShelfController*)downloadShelf; | 256 - (DownloadShelfController*)downloadShelf; |
257 | 257 |
258 // Retains the given FindBarCocoaController and adds its view to this | 258 // Retains the given FindBarCocoaController and adds its view to this |
259 // browser window. Must only be called once per | 259 // browser window. Must only be called once per |
260 // BrowserWindowController. | 260 // BrowserWindowController. |
261 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; | 261 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
262 | 262 |
263 // The user changed the theme. | 263 // The user changed the theme. |
264 - (void)userChangedTheme; | 264 - (void)userChangedTheme; |
265 | 265 |
266 // Called when the user picks a menu or toolbar item when this window is key. | |
267 - (void)commandDispatch:(id)sender; | |
268 | |
269 // Executes the command in the context of the current browser. | 266 // Executes the command in the context of the current browser. |
270 // |command| is an integer value containing one of the constants defined in the | 267 // |command| is an integer value containing one of the constants defined in the |
271 // "chrome/app/chrome_command_ids.h" file. | 268 // "chrome/app/chrome_command_ids.h" file. |
272 - (void)executeCommand:(int)command; | 269 - (void)executeCommand:(int)command; |
273 | 270 |
274 // Delegate method for the status bubble to query its base frame. | 271 // Delegate method for the status bubble to query its base frame. |
275 - (NSRect)statusBubbleBaseFrame; | 272 - (NSRect)statusBubbleBaseFrame; |
276 | 273 |
277 // Show the bookmark bubble (e.g. user just clicked on the STAR) | 274 // Show the bookmark bubble (e.g. user just clicked on the STAR) |
278 - (void)showBookmarkBubbleForURL:(const GURL&)url | 275 - (void)showBookmarkBubbleForURL:(const GURL&)url |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 // |source| rect doesn't fit into |target|. | 465 // |source| rect doesn't fit into |target|. |
469 - (NSSize)overflowFrom:(NSRect)source | 466 - (NSSize)overflowFrom:(NSRect)source |
470 to:(NSRect)target; | 467 to:(NSRect)target; |
471 | 468 |
472 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. | 469 // The fullscreen exit bubble controller, or nil if the bubble isn't showing. |
473 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; | 470 - (FullscreenExitBubbleController*)fullscreenExitBubbleController; |
474 @end // @interface BrowserWindowController (TestingAPI) | 471 @end // @interface BrowserWindowController (TestingAPI) |
475 | 472 |
476 | 473 |
477 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 474 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |