Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: ui/views/cocoa/views_nswindow_delegate.h

Issue 1135333002: Suppress -Wpartial-availability warnings that arise from NSWindowDelegate methods only available on… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from thakis. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/cocoa/views_nswindow_delegate.h
diff --git a/ui/views/cocoa/views_nswindow_delegate.h b/ui/views/cocoa/views_nswindow_delegate.h
index ec8e6e1378d33c432990b692646094314d6c4cd3..dc0b2016b21ecfdf3918d53ecae46460735f56e6 100644
--- a/ui/views/cocoa/views_nswindow_delegate.h
+++ b/ui/views/cocoa/views_nswindow_delegate.h
@@ -8,6 +8,7 @@
#import <Cocoa/Cocoa.h>
#import "base/mac/scoped_nsobject.h"
+#include "ui/views/views_export.h"
namespace views {
class NativeWidgetMac;
@@ -16,6 +17,7 @@ class BridgedNativeWidget;
// The delegate set on the NSWindow when a views::BridgedNativeWidget is
// initialized.
+VIEWS_EXPORT
erikchen 2015/05/19 00:35:24 This is necessary when I do a component build.
@interface ViewsNSWindowDelegate : NSObject<NSWindowDelegate> {
@private
views::BridgedNativeWidget* parent_; // Weak. Owns this.
@@ -52,6 +54,11 @@ class BridgedNativeWidget;
returnCode:(NSInteger)returnCode
contextInfo:(void*)contextInfo;
+// Redeclare methods defined in the protocol NSWindowDelegate which are only
+// available on OSX 10.7+.
+- (void)windowDidFailToEnterFullScreen:(NSWindow*)window;
+- (void)windowDidFailToExitFullScreen:(NSWindow*)window;
+
@end
#endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698