| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 - (NSPoint)bookmarkBubblePoint; | 260 - (NSPoint)bookmarkBubblePoint; |
| 261 | 261 |
| 262 // Call when the user changes the tab strip display mode, enabling or | 262 // Call when the user changes the tab strip display mode, enabling or |
| 263 // disabling vertical tabs for this browser. Re-flows the contents of the | 263 // disabling vertical tabs for this browser. Re-flows the contents of the |
| 264 // browser. | 264 // browser. |
| 265 - (void)toggleTabStripDisplayMode; | 265 - (void)toggleTabStripDisplayMode; |
| 266 | 266 |
| 267 // Shows or hides the Instant preview contents. | 267 // Shows or hides the Instant preview contents. |
| 268 - (void)showInstant:(TabContents*)previewContents; | 268 - (void)showInstant:(TabContents*)previewContents; |
| 269 - (void)hideInstant; | 269 - (void)hideInstant; |
| 270 - (void)commitInstant; |
| 270 | 271 |
| 271 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where | 272 // Returns the frame, in Cocoa (unflipped) screen coordinates, of the area where |
| 272 // Instant results are. If Instant is not showing, returns the frame of where | 273 // Instant results are. If Instant is not showing, returns the frame of where |
| 273 // it would be. | 274 // it would be. |
| 274 - (NSRect)instantFrame; | 275 - (NSRect)instantFrame; |
| 275 | 276 |
| 276 // Called when the Add Search Engine dialog is closed. | 277 // Called when the Add Search Engine dialog is closed. |
| 277 - (void)sheetDidEnd:(NSWindow*)sheet | 278 - (void)sheetDidEnd:(NSWindow*)sheet |
| 278 returnCode:(NSInteger)code | 279 returnCode:(NSInteger)code |
| 279 context:(void*)context; | 280 context:(void*)context; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 - (void)resetWindowGrowthState; | 395 - (void)resetWindowGrowthState; |
| 395 | 396 |
| 396 // Computes by how far in each direction, horizontal and vertical, the | 397 // Computes by how far in each direction, horizontal and vertical, the |
| 397 // |source| rect doesn't fit into |target|. | 398 // |source| rect doesn't fit into |target|. |
| 398 - (NSSize)overflowFrom:(NSRect)source | 399 - (NSSize)overflowFrom:(NSRect)source |
| 399 to:(NSRect)target; | 400 to:(NSRect)target; |
| 400 @end // @interface BrowserWindowController(TestingAPI) | 401 @end // @interface BrowserWindowController(TestingAPI) |
| 401 | 402 |
| 402 | 403 |
| 403 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 404 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |