Chromium Code Reviews| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 - (BOOL)supportsBookmarkBar; | 321 - (BOOL)supportsBookmarkBar; |
| 322 | 322 |
| 323 // Called to check if this controller's window is a tabbed window (e.g., not a | 323 // Called to check if this controller's window is a tabbed window (e.g., not a |
| 324 // pop-up window). Returns YES if it is, NO otherwise. | 324 // pop-up window). Returns YES if it is, NO otherwise. |
| 325 // Note: The |-has...| methods are usually preferred, so this method is largely | 325 // Note: The |-has...| methods are usually preferred, so this method is largely |
| 326 // deprecated. | 326 // deprecated. |
| 327 - (BOOL)isTabbedWindow; | 327 - (BOOL)isTabbedWindow; |
| 328 | 328 |
| 329 @end // @interface BrowserWindowController(WindowType) | 329 @end // @interface BrowserWindowController(WindowType) |
| 330 | 330 |
| 331 // Methods having to do with full screen mode in Lion. | |
| 332 @interface BrowserWindowController(LionFullScreen) | |
|
Robert Sesek
2011/07/13 14:47:15
nit: space before (
| |
| 333 - (void)windowDidEnterFullScreen:(NSNotification *)notification; | |
|
Robert Sesek
2011/07/13 14:47:15
Chromium style does not put a space between the ty
| |
| 334 - (void)windowDidExitFullScreen:(NSNotification *)notification; | |
| 335 - (BOOL)isLionFullScreen; | |
| 336 @end | |
| 331 | 337 |
| 332 // Methods having to do with fullscreen mode. | 338 // Methods having to do with fullscreen mode. |
| 333 @interface BrowserWindowController(Fullscreen) | 339 @interface BrowserWindowController(Fullscreen) |
| 334 | 340 |
| 335 // Enters fullscreen mode. | 341 // Enters fullscreen mode. |
| 336 - (IBAction)enterFullscreen:(id)sender; | 342 - (IBAction)enterFullscreen:(id)sender; |
| 337 | 343 |
| 338 // Enters (or exits) fullscreen mode. | 344 // Enters (or exits) fullscreen mode. |
| 339 - (void)setFullscreen:(BOOL)fullscreen; | 345 - (void)setFullscreen:(BOOL)fullscreen; |
| 340 | 346 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 - (void)resetWindowGrowthState; | 412 - (void)resetWindowGrowthState; |
| 407 | 413 |
| 408 // Computes by how far in each direction, horizontal and vertical, the | 414 // Computes by how far in each direction, horizontal and vertical, the |
| 409 // |source| rect doesn't fit into |target|. | 415 // |source| rect doesn't fit into |target|. |
| 410 - (NSSize)overflowFrom:(NSRect)source | 416 - (NSSize)overflowFrom:(NSRect)source |
| 411 to:(NSRect)target; | 417 to:(NSRect)target; |
| 412 @end // @interface BrowserWindowController (TestingAPI) | 418 @end // @interface BrowserWindowController (TestingAPI) |
| 413 | 419 |
| 414 | 420 |
| 415 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 421 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
| OLD | NEW |