Index: chrome/browser/ui/cocoa/browser_window_controller.h |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h |
index 897dad04313f68dd1a875383f85fabfb47d1a715..b4216dd12f7969cc5b1ed4e3a21a49e1f0c3d7c6 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller.h |
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h |
@@ -48,6 +48,37 @@ class TabContents; |
@class TabStripView; |
@class ToolbarController; |
+// Provide the forward-declarations of new 10.7 SDK symbols so they can be |
+// called when building with the 10.5 SDK. |
+#if !defined(MAC_OS_X_VERSION_10_7) || \ |
+ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
+ |
+enum { |
+ NSWindowAnimationBehaviorDefault = 0, |
+ NSWindowAnimationBehaviorNone = 2, |
+ NSWindowAnimationBehaviorDocumentWindow = 3, |
+ NSWindowAnimationBehaviorUtilityWindow = 4, |
+ NSWindowAnimationBehaviorAlertPanel = 5 |
+}; |
+typedef NSInteger NSWindowAnimationBehavior; |
+ |
+enum { |
+ NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7, |
+ NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8 |
+}; |
+ |
+enum { |
+ NSFullScreenWindowMask = 1 << 14 |
+}; |
+ |
+@interface NSWindow (LionSDKDeclarations) |
+- (void)setRestorable:(BOOL)flag; |
+- (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior; |
+- (void)toggleFullScreen:(id)sender; |
+@end |
+ |
+#endif // MAC_OS_X_VERSION_10_7 |
+ |
@interface BrowserWindowController : |
TabWindowController<NSUserInterfaceValidations, |
BookmarkBarControllerDelegate, |