Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: chrome/browser/cocoa/preferences_window_controller.h

Issue 242162: First step in l10n for the prefs window.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/scoped_nsobject.h" 8 #include "base/scoped_nsobject.h"
9 #include "chrome/common/pref_member.h" 9 #include "chrome/common/pref_member.h"
10 10
(...skipping 14 matching lines...) Expand all
25 // the window is still open. When the window closes, a notification is sent 25 // the window is still open. When the window closes, a notification is sent
26 // via the system NotificationCenter. This can be used as a signal to 26 // via the system NotificationCenter. This can be used as a signal to
27 // release this controller, as it's likely the client wants to enforce there 27 // release this controller, as it's likely the client wants to enforce there
28 // only being one (we don't do that internally as it makes it very difficult 28 // only being one (we don't do that internally as it makes it very difficult
29 // to unit test). 29 // to unit test).
30 @interface PreferencesWindowController : NSWindowController { 30 @interface PreferencesWindowController : NSWindowController {
31 @private 31 @private
32 Profile* profile_; // weak ref 32 Profile* profile_; // weak ref
33 PrefService* prefs_; // weak ref - Obtained from profile_ for convenience. 33 PrefService* prefs_; // weak ref - Obtained from profile_ for convenience.
34 scoped_ptr<PrefObserverBridge> observer_; // Watches for pref changes. 34 scoped_ptr<PrefObserverBridge> observer_; // Watches for pref changes.
35 IBOutlet NSTabView* tabView_; 35
36 IBOutlet NSToolbar* toolbar_;
37
38 // The views we'll rotate through
39 IBOutlet NSView* basicsView_;
40 IBOutlet NSView* personalStuffView_;
41 IBOutlet NSView* underTheHoodView_;
42
36 IBOutlet NSArrayController* customPagesArrayController_; 43 IBOutlet NSArrayController* customPagesArrayController_;
37 44
38 // Basics panel 45 // Basics panel
39 IntegerPrefMember restoreOnStartup_; 46 IntegerPrefMember restoreOnStartup_;
40 scoped_nsobject<CustomHomePagesModel> customPagesSource_; 47 scoped_nsobject<CustomHomePagesModel> customPagesSource_;
41 BooleanPrefMember newTabPageIsHomePage_; 48 BooleanPrefMember newTabPageIsHomePage_;
42 StringPrefMember homepage_; 49 StringPrefMember homepage_;
43 BooleanPrefMember showHomeButton_; 50 BooleanPrefMember showHomeButton_;
44 BooleanPrefMember showPageOptionButtons_; 51 BooleanPrefMember showPageOptionButtons_;
45 scoped_nsobject<SearchEngineListModel> searchEngineModel_; 52 scoped_nsobject<SearchEngineListModel> searchEngineModel_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // User Data panel 90 // User Data panel
84 - (IBAction)showSavedPasswords:(id)sender; 91 - (IBAction)showSavedPasswords:(id)sender;
85 - (IBAction)importData:(id)sender; 92 - (IBAction)importData:(id)sender;
86 - (IBAction)clearData:(id)sender; 93 - (IBAction)clearData:(id)sender;
87 - (IBAction)resetThemeToDefault:(id)sender; 94 - (IBAction)resetThemeToDefault:(id)sender;
88 - (IBAction)themesGallery:(id)sender; 95 - (IBAction)themesGallery:(id)sender;
89 96
90 // Under the hood 97 // Under the hood
91 - (IBAction)browseDownloadLocation:(id)sender; 98 - (IBAction)browseDownloadLocation:(id)sender;
92 99
100 // When a toolbar button is clicked
101 - (IBAction)toolbarButtonSelected:(id)sender;
102
93 // Usable from cocoa bindings to hook up the custom home pages table. 103 // Usable from cocoa bindings to hook up the custom home pages table.
94 @property(readonly) CustomHomePagesModel* customPagesSource; 104 @property(readonly) CustomHomePagesModel* customPagesSource;
95 105
96 // NSNotification sent when the prefs window is closed. 106 // NSNotification sent when the prefs window is closed.
97 extern NSString* const kUserDoneEditingPrefsNotification; 107 extern NSString* const kUserDoneEditingPrefsNotification;
98 108
99 @end 109 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698