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 30 matching lines...) Expand all Loading... |
41 class LocationBarViewMac; | 41 class LocationBarViewMac; |
42 @class PresentationModeController; | 42 @class PresentationModeController; |
43 @class PreviewableContentsController; | 43 @class PreviewableContentsController; |
44 @class SidebarController; | 44 @class SidebarController; |
45 class StatusBubbleMac; | 45 class StatusBubbleMac; |
46 class TabContents; | 46 class TabContents; |
47 @class TabStripController; | 47 @class TabStripController; |
48 @class TabStripView; | 48 @class TabStripView; |
49 @class ToolbarController; | 49 @class ToolbarController; |
50 | 50 |
| 51 // Provide the forward-declarations of new 10.7 SDK symbols so they can be |
| 52 // called when building with the 10.5 SDK. |
| 53 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
| 54 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
| 55 |
| 56 enum { |
| 57 NSWindowAnimationBehaviorDefault = 0, |
| 58 NSWindowAnimationBehaviorNone = 2, |
| 59 NSWindowAnimationBehaviorDocumentWindow = 3, |
| 60 NSWindowAnimationBehaviorUtilityWindow = 4, |
| 61 NSWindowAnimationBehaviorAlertPanel = 5 |
| 62 }; |
| 63 typedef NSInteger NSWindowAnimationBehavior; |
| 64 |
| 65 enum { |
| 66 NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7, |
| 67 NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8 |
| 68 }; |
| 69 |
| 70 enum { |
| 71 NSFullScreenWindowMask = 1 << 14 |
| 72 }; |
| 73 |
| 74 @interface NSWindow (LionSDKDeclarations) |
| 75 - (void)setRestorable:(BOOL)flag; |
| 76 - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior; |
| 77 - (void)toggleFullScreen:(id)sender; |
| 78 @end |
| 79 |
| 80 #endif // MAC_OS_X_VERSION_10_7 |
| 81 |
51 @interface BrowserWindowController : | 82 @interface BrowserWindowController : |
52 TabWindowController<NSUserInterfaceValidations, | 83 TabWindowController<NSUserInterfaceValidations, |
53 BookmarkBarControllerDelegate, | 84 BookmarkBarControllerDelegate, |
54 BrowserCommandExecutor, | 85 BrowserCommandExecutor, |
55 ViewResizer, | 86 ViewResizer, |
56 TabContentsControllerDelegate, | 87 TabContentsControllerDelegate, |
57 TabStripControllerDelegate> { | 88 TabStripControllerDelegate> { |
58 @private | 89 @private |
59 // The ordering of these members is important as it determines the order in | 90 // The ordering of these members is important as it determines the order in |
60 // which they are destroyed. |browser_| needs to be destroyed last as most of | 91 // which they are destroyed. |browser_| needs to be destroyed last as most of |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 - (void)resetWindowGrowthState; | 478 - (void)resetWindowGrowthState; |
448 | 479 |
449 // Computes by how far in each direction, horizontal and vertical, the | 480 // Computes by how far in each direction, horizontal and vertical, the |
450 // |source| rect doesn't fit into |target|. | 481 // |source| rect doesn't fit into |target|. |
451 - (NSSize)overflowFrom:(NSRect)source | 482 - (NSSize)overflowFrom:(NSRect)source |
452 to:(NSRect)target; | 483 to:(NSRect)target; |
453 @end // @interface BrowserWindowController (TestingAPI) | 484 @end // @interface BrowserWindowController (TestingAPI) |
454 | 485 |
455 | 486 |
456 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ | 487 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ |
OLD | NEW |