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 object. Handles | 8 // A class acting as the Objective-C controller for the Browser object. Handles |
9 // interactions between Cocoa and the cross-platform code. Each window has a | 9 // interactions between Cocoa and the cross-platform code. Each window has a |
10 // single set of toolbars (main toolbar, bookmark bar, etc) and, by virtue of | 10 // single set of toolbars (main toolbar, bookmark bar, etc) and, by virtue of |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // browser window. Must only be called once per | 110 // browser window. Must only be called once per |
111 // BrowserWindowController. | 111 // BrowserWindowController. |
112 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; | 112 - (void)addFindBar:(FindBarCocoaController*)findBarCocoaController; |
113 | 113 |
114 // Enters (or exits) fullscreen mode. | 114 // Enters (or exits) fullscreen mode. |
115 - (void)setFullscreen:(BOOL)fullscreen; | 115 - (void)setFullscreen:(BOOL)fullscreen; |
116 | 116 |
117 // Returns fullscreen state. | 117 // Returns fullscreen state. |
118 - (BOOL)isFullscreen; | 118 - (BOOL)isFullscreen; |
119 | 119 |
| 120 // Executes the command in the context of the current browser. |
| 121 // |command| is an integer value containing one of the constants defined in the |
| 122 // "chrome/app/chrome_dll_resource.h" file. |
| 123 - (void)executeCommand:(int)command; |
| 124 |
120 @end | 125 @end |
121 | 126 |
122 | 127 |
123 @interface BrowserWindowController(TestingAPI) | 128 @interface BrowserWindowController(TestingAPI) |
124 | 129 |
125 // Allows us to initWithBrowser withOUT taking ownership of the browser. | 130 // Allows us to initWithBrowser withOUT taking ownership of the browser. |
126 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; | 131 - (id)initWithBrowser:(Browser*)browser takeOwnership:(BOOL)ownIt; |
127 | 132 |
128 // Return an autoreleased NSWindow suitable for fullscreen use. | 133 // Return an autoreleased NSWindow suitable for fullscreen use. |
129 - (NSWindow*)fullscreenWindow; | 134 - (NSWindow*)fullscreenWindow; |
130 | 135 |
131 @end // BrowserWindowController(TestingAPI) | 136 @end // BrowserWindowController(TestingAPI) |
132 | 137 |
133 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 138 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |