Suppress -Wpartial-availability warnings that arise from NSWindowDelegate.
commit905a291f9595753d0ed663761eff707d5579c48c
authorerikchen <erikchen@chromium.org>
Tue, 19 May 2015 03:44:44 +0000 (18 20:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 03:44:41 +0000 (19 03:44 +0000)
treed9a78490a2c553b697c2e5bdb36c73f16b26c608
parent521697f5d826185b5e7126466110e72f1da2a26f
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}
base/mac/sdk_forward_declarations.h
chrome/browser/ui/cocoa/browser_window_controller_private.h
ui/views/cocoa/bridged_native_widget_unittest.mm
ui/views/cocoa/views_nswindow_delegate.h