OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 - (NSPoint)themePatternPhase; | 254 - (NSPoint)themePatternPhase; |
255 | 255 |
256 // Return the point to which a bubble window's arrow should point. | 256 // Return the point to which a bubble window's arrow should point. |
257 - (NSPoint)bookmarkBubblePoint; | 257 - (NSPoint)bookmarkBubblePoint; |
258 | 258 |
259 // Call when the user changes the tab strip display mode, enabling or | 259 // Call when the user changes the tab strip display mode, enabling or |
260 // disabling vertical tabs for this browser. Re-flows the contents of the | 260 // disabling vertical tabs for this browser. Re-flows the contents of the |
261 // browser. | 261 // browser. |
262 - (void)toggleTabStripDisplayMode; | 262 - (void)toggleTabStripDisplayMode; |
263 | 263 |
| 264 // Shows or hides the Instant preview contents. |
| 265 - (void)showInstant:(TabContents*)previewContents; |
| 266 - (void)hideInstant; |
| 267 |
264 // Called when the Add Search Engine dialog is closed. | 268 // Called when the Add Search Engine dialog is closed. |
265 - (void)sheetDidEnd:(NSWindow*)sheet | 269 - (void)sheetDidEnd:(NSWindow*)sheet |
266 returnCode:(NSInteger)code | 270 returnCode:(NSInteger)code |
267 context:(void*)context; | 271 context:(void*)context; |
268 | 272 |
269 @end // @interface BrowserWindowController | 273 @end // @interface BrowserWindowController |
270 | 274 |
271 | 275 |
272 // Methods having to do with the window type (normal/popup/app, and whether the | 276 // Methods having to do with the window type (normal/popup/app, and whether the |
273 // window has various features; fullscreen methods are separate). | 277 // window has various features; fullscreen methods are separate). |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 - (void)resetWindowGrowthState; | 383 - (void)resetWindowGrowthState; |
380 | 384 |
381 // Computes by how far in each direction, horizontal and vertical, the | 385 // Computes by how far in each direction, horizontal and vertical, the |
382 // |source| rect doesn't fit into |target|. | 386 // |source| rect doesn't fit into |target|. |
383 - (NSSize)overflowFrom:(NSRect)source | 387 - (NSSize)overflowFrom:(NSRect)source |
384 to:(NSRect)target; | 388 to:(NSRect)target; |
385 @end // @interface BrowserWindowController(TestingAPI) | 389 @end // @interface BrowserWindowController(TestingAPI) |
386 | 390 |
387 | 391 |
388 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 392 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |