diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 17:37:43 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 17:37:43 +0000 |
commit | 41176ea8715819d805ae726913c5a7c4312b2947 (patch) | |
tree | 9462fb92e16fb4ffce0c8ac1ad2aa6d80a6b129b /chrome/browser/cocoa/preferences_window_controller.h | |
parent | 5461e1db9037f0a996042b54ba31af4807567fb7 (diff) | |
download | chromium_src-41176ea8715819d805ae726913c5a7c4312b2947.zip chromium_src-41176ea8715819d805ae726913c5a7c4312b2947.tar.gz chromium_src-41176ea8715819d805ae726913c5a7c4312b2947.tar.bz2 |
Mac: Hook up "Clear Auto-Open Settings" button
xib change: Hook up button to new outlet and action, bind its "enabled" property to fileHandlerUIEnabled.
BUG=41794
TEST=Download a pdf and a doc file, open prefs in second window. In the download shelf, check pdf files to auto-open. Button in prefs should become active. Let doc files auto-open. Button should stay active. Disable auto-opening for both types in shelf, button should become inactive. Let pdfs auto-open, click button. Button should become inactive, pdfs should show up as non-autoopening in shelf.
Review URL: http://codereview.chromium.org/2473002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/preferences_window_controller.h')
-rw-r--r-- | chrome/browser/cocoa/preferences_window_controller.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/chrome/browser/cocoa/preferences_window_controller.h b/chrome/browser/cocoa/preferences_window_controller.h index c117384..43c8a93 100644 --- a/chrome/browser/cocoa/preferences_window_controller.h +++ b/chrome/browser/cocoa/preferences_window_controller.h @@ -107,6 +107,8 @@ class ProfileSyncService; IBOutlet NSButton* downloadLocationButton_; StringPrefMember defaultDownloadLocation_; BooleanPrefMember askForSaveLocation_; + IBOutlet NSButton* resetFileHandlersButton_; + StringPrefMember autoOpenFiles_; BooleanPrefMember translateEnabled_; BooleanPrefMember tabsToLinks_; FontLanguageSettingsController* fontLanguageSettings_; @@ -126,29 +128,30 @@ class ProfileSyncService; // IBAction methods for responding to user actions. // Basics panel -- (IBAction)makeDefaultBrowser:(id)sender; - (IBAction)addHomepage:(id)sender; - (IBAction)removeSelectedHomepages:(id)sender; - (IBAction)useCurrentPagesAsHomepage:(id)sender; - (IBAction)manageSearchEngines:(id)sender; +- (IBAction)makeDefaultBrowser:(id)sender; // User Data panel +- (IBAction)doSyncAction:(id)sender; +- (IBAction)doSyncCustomize:(id)sender; +- (IBAction)doSyncReauthentication:(id)sender; - (IBAction)showSavedPasswords:(id)sender; - (IBAction)showAutoFillSettings:(id)sender; - (IBAction)importData:(id)sender; - (IBAction)resetThemeToDefault:(id)sender; - (IBAction)themesGallery:(id)sender; -- (IBAction)doSyncAction:(id)sender; -- (IBAction)doSyncCustomize:(id)sender; -- (IBAction)doSyncReauthentication:(id)sender; // Under the hood -- (IBAction)browseDownloadLocation:(id)sender; -- (IBAction)clearData:(id)sender; - (IBAction)showContentSettings:(id)sender; +- (IBAction)clearData:(id)sender; - (IBAction)privacyLearnMore:(id)sender; -- (IBAction)openProxyPreferences:(id)sender; +- (IBAction)browseDownloadLocation:(id)sender; +- (IBAction)resetAutoOpenFiles:(id)sender; - (IBAction)changeFontAndLanguageSettings:(id)sender; +- (IBAction)openProxyPreferences:(id)sender; - (IBAction)showCertificates:(id)sender; // When a toolbar button is clicked |