summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/preferences_window_controller.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 18:19:10 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 18:19:10 +0000
commitd2123de693b44900b587ef1955af5e5217d68c42 (patch)
tree4e970debf26f143250a52d89b5f897362565ab77 /chrome/browser/cocoa/preferences_window_controller.h
parent376883a4ccd8f92817de1355317adea570a730ce (diff)
downloadchromium_src-d2123de693b44900b587ef1955af5e5217d68c42.zip
chromium_src-d2123de693b44900b587ef1955af5e5217d68c42.tar.gz
chromium_src-d2123de693b44900b587ef1955af5e5217d68c42.tar.bz2
Implement table for custom home pages at startup on Mac.
BUG=13151 TEST=custom home pages table. adding to it, removing. use current. enabling and disabling when applicable. Review URL: http://codereview.chromium.org/119242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/preferences_window_controller.h')
-rw-r--r--chrome/browser/cocoa/preferences_window_controller.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/preferences_window_controller.h b/chrome/browser/cocoa/preferences_window_controller.h
index 57ff985..e7f7734 100644
--- a/chrome/browser/cocoa/preferences_window_controller.h
+++ b/chrome/browser/cocoa/preferences_window_controller.h
@@ -8,10 +8,10 @@
#include "base/scoped_nsobject.h"
#include "chrome/common/pref_member.h"
+@class CustomHomePagesModel;
class PrefObserverBridge;
class PrefService;
class Profile;
-@class StartupURLDataSource;
// A window controller that handles the preferences window. The bulk of the
// work is handled via Cocoa Bindings and getter/setter methods that wrap
@@ -31,14 +31,17 @@ class Profile;
PrefService* prefs_; // weak ref - Obtained from profile_ for convenience.
scoped_ptr<PrefObserverBridge> observer_; // Watches for pref changes.
IBOutlet NSTabView* tabView_;
+ IBOutlet NSArrayController* customPagesArrayController_;
// Basics panel
IntegerPrefMember restoreOnStartup_;
- scoped_nsobject<StartupURLDataSource> customPagesSource_;
+ scoped_nsobject<CustomHomePagesModel> customPagesSource_;
BooleanPrefMember newTabPageIsHomePage_;
StringPrefMember homepage_;
BooleanPrefMember showHomeButton_;
BooleanPrefMember showPageOptionButtons_;
+ // Used when creating a new home page url to make the new cell editable.
+ BOOL pendingSelectForEdit_;
// User Data panel
BooleanPrefMember askSavePasswords_;
@@ -59,6 +62,9 @@ class Profile;
// Basics panel
- (IBAction)makeDefaultBrowser:(id)sender;
+- (IBAction)addHomepage:(id)sender;
+- (IBAction)removeSelectedHomepages:(id)sender;
+- (IBAction)useCurrentPagesAsHomepage:(id)sender;
// User Data panel
- (IBAction)showSavedPasswords:(id)sender;
@@ -66,7 +72,10 @@ class Profile;
- (IBAction)clearData:(id)sender;
- (IBAction)resetTheme:(id)sender;
-@end
+// Usable from cocoa bindings to hook up the custom home pages table.
+@property(readonly) CustomHomePagesModel* customPagesSource;
// NSNotification sent when the prefs window is closed.
extern NSString* const kUserDoneEditingPrefsNotification;
+
+@end