diff options
-rw-r--r-- | base/cocoa_protocols_mac.h | 1 | ||||
-rw-r--r-- | chrome/browser/cocoa/shell_dialogs_mac.mm | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/base/cocoa_protocols_mac.h b/base/cocoa_protocols_mac.h index f59b3c8..d3d06f4 100644 --- a/base/cocoa_protocols_mac.h +++ b/base/cocoa_protocols_mac.h @@ -26,6 +26,7 @@ DEFINE_EMPTY_PROTOCOL(NSAnimationDelegate) DEFINE_EMPTY_PROTOCOL(NSControlTextEditingDelegate) DEFINE_EMPTY_PROTOCOL(NSMatrixDelegate) DEFINE_EMPTY_PROTOCOL(NSMenuDelegate) +DEFINE_EMPTY_PROTOCOL(NSOpenSavePanelDelegate) DEFINE_EMPTY_PROTOCOL(NSOutlineViewDelegate) DEFINE_EMPTY_PROTOCOL(NSTableViewDataSource) DEFINE_EMPTY_PROTOCOL(NSTableViewDelegate) diff --git a/chrome/browser/cocoa/shell_dialogs_mac.mm b/chrome/browser/cocoa/shell_dialogs_mac.mm index 64acbd3..7c398e1 100644 --- a/chrome/browser/cocoa/shell_dialogs_mac.mm +++ b/chrome/browser/cocoa/shell_dialogs_mac.mm @@ -4,11 +4,13 @@ #include "chrome/browser/shell_dialogs.h" -#include <CoreServices/CoreServices.h> #import <Cocoa/Cocoa.h> +#include <CoreServices/CoreServices.h> + #include <map> #include <set> +#import "base/cocoa_protocols_mac.h" #include "base/logging.h" #include "base/mac_util.h" #include "base/scoped_cftyperef.h" @@ -21,7 +23,7 @@ class SelectFileDialogImpl; // A bridge class to act as the modal delegate to the save/open sheet and send // the results to the C++ class. -@interface SelectFileDialogBridge : NSObject { +@interface SelectFileDialogBridge : NSObject<NSOpenSavePanelDelegate> { @private SelectFileDialogImpl* selectFileDialogImpl_; // WEAK; owns us } |