From c1ca1c3b1a234281fd24b8ec9a1802c4055d07a0 Mon Sep 17 00:00:00 2001 From: "rsesek@chromium.org" Date: Tue, 29 Sep 2009 15:54:48 +0000 Subject: [Mac] Hook up part of the download preferences Enable the download location path and the prompt-for-download settings. BUG=22047 TEST=Preferences --> Under the hood, set download location, downloaded file is in new location. TEST=Enable prompt for download location, download file, save panel comes up. Review URL: http://codereview.chromium.org/239008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27485 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/preferences_window_controller.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/cocoa/preferences_window_controller.h') diff --git a/chrome/browser/cocoa/preferences_window_controller.h b/chrome/browser/cocoa/preferences_window_controller.h index 5aa8b95..66bc78a 100644 --- a/chrome/browser/cocoa/preferences_window_controller.h +++ b/chrome/browser/cocoa/preferences_window_controller.h @@ -60,6 +60,9 @@ class Profile; BooleanPrefMember safeBrowsing_; BooleanPrefMember metricsRecording_; IntegerPrefMember cookieBehavior_; + IBOutlet NSPathControl* downloadLocationControl_; + StringPrefMember defaultDownloadLocation_; + BooleanPrefMember askForSaveLocation_; } // Designated initializer. |profile| should not be NULL. @@ -84,6 +87,9 @@ class Profile; - (IBAction)resetThemeToDefault:(id)sender; - (IBAction)themesGallery:(id)sender; +// Under the hood +- (IBAction)browseDownloadLocation:(id)sender; + // Usable from cocoa bindings to hook up the custom home pages table. @property(readonly) CustomHomePagesModel* customPagesSource; -- cgit v1.1