Skip to content

Commit

Permalink
10.6 SDK compatibility fix for SelectFileDialogBridge following r37693.
Browse files Browse the repository at this point in the history
SelectFileDialogBridge should implement the NSOpenSavePanelDelegate protocol.

BUG=35569
TEST=10.6 SDK build (mac_sdk=10.6)
Review URL: http://codereview.chromium.org/601060

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38957 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
mark@chromium.org committed Feb 12, 2010
1 parent 55eaae5 commit f0447c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions base/cocoa_protocols_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions chrome/browser/cocoa/shell_dialogs_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -21,7 +23,7 @@

// 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
}
Expand Down

0 comments on commit f0447c0

Please sign in to comment.