summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/browser_window_controller_private.h
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-05-18 20:44:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-19 03:44:41 +0000
commit905a291f9595753d0ed663761eff707d5579c48c (patch)
treed9a78490a2c553b697c2e5bdb36c73f16b26c608 /chrome/browser/ui/cocoa/browser_window_controller_private.h
parent521697f5d826185b5e7126466110e72f1da2a26f (diff)
downloadchromium_src-905a291f9595753d0ed663761eff707d5579c48c.zip
chromium_src-905a291f9595753d0ed663761eff707d5579c48c.tar.gz
chromium_src-905a291f9595753d0ed663761eff707d5579c48c.tar.bz2
Suppress -Wpartial-availability warnings that arise from NSWindowDelegate.
Some methods in the protocol NSWindowDelegate are only declared in an OSX 10.7+ SDK. There is no good way to suppress -Wpartial-availability warnings for protocols. In BrowserWindowController, redeclare the methods in the private header. For bridge_native_widget_unittest, use performSelector: to invoke the methods. BUG=471823 Review URL: https://codereview.chromium.org/1135333002 Cr-Commit-Position: refs/heads/master@{#330472}
Diffstat (limited to 'chrome/browser/ui/cocoa/browser_window_controller_private.h')
-rw-r--r--chrome/browser/ui/cocoa/browser_window_controller_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.h b/chrome/browser/ui/cocoa/browser_window_controller_private.h
index d50964f..0fd1077 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.h
@@ -164,6 +164,15 @@
// out of AppKit Fullscreen.
- (BOOL)shouldUseCustomAppKitFullscreenTransition;
+#if defined(MAC_OS_X_VERSION_10_7) && \
+ MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7
+// Redeclare some methods from NSWindowDelegate to suppress
+// -Wpartial-availability warnings.
+- (void)windowDidEnterFullScreen:(NSNotification*)notification;
+- (void)windowDidExitFullScreen:(NSNotification*)notification;
+- (void)windowWillExitFullScreen:(NSNotification*)notification;
+#endif
+
@end // @interface BrowserWindowController(Private)
#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_