Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/prefs/pref_member.h" | 9 #include "chrome/browser/prefs/pref_member.h" |
| 10 #include "chrome/browser/prefs/pref_set_observer.h" | 10 #include "chrome/browser/prefs/pref_set_observer.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 - (IBAction)resetAutoOpenFiles:(id)sender; | 187 - (IBAction)resetAutoOpenFiles:(id)sender; |
| 188 - (IBAction)changeFontAndLanguageSettings:(id)sender; | 188 - (IBAction)changeFontAndLanguageSettings:(id)sender; |
| 189 - (IBAction)openProxyPreferences:(id)sender; | 189 - (IBAction)openProxyPreferences:(id)sender; |
| 190 - (IBAction)showCertificates:(id)sender; | 190 - (IBAction)showCertificates:(id)sender; |
| 191 - (IBAction)resetToDefaults:(id)sender; | 191 - (IBAction)resetToDefaults:(id)sender; |
| 192 | 192 |
| 193 // When a toolbar button is clicked | 193 // When a toolbar button is clicked |
| 194 - (IBAction)toolbarButtonSelected:(id)sender; | 194 - (IBAction)toolbarButtonSelected:(id)sender; |
| 195 | 195 |
| 196 // Usable from cocoa bindings to hook up the custom home pages table. | 196 // Usable from cocoa bindings to hook up the custom home pages table. |
| 197 @property (nonatomic, readonly) CustomHomePagesModel* customPagesSource; | 197 @property(nonatomic, readonly) CustomHomePagesModel* customPagesSource; |
|
Robert Sesek
2011/01/24 18:03:57
Again, move to be right after the ivar block.
| |
| 198 | 198 |
| 199 // Properties for the enabled state of various UI elements. Keep these ordered | 199 // Properties for the enabled state of various UI elements. Keep these ordered |
| 200 // by occurrence on the dialog. | 200 // by occurrence on the dialog. |
| 201 @property (nonatomic) BOOL restoreButtonsEnabled; | 201 @property(nonatomic) BOOL restoreButtonsEnabled; |
| 202 @property (nonatomic) BOOL restoreURLsEnabled; | 202 @property(nonatomic) BOOL restoreURLsEnabled; |
| 203 @property (nonatomic) BOOL showHomeButtonEnabled; | 203 @property(nonatomic) BOOL showHomeButtonEnabled; |
| 204 @property (nonatomic) BOOL defaultSearchEngineEnabled; | 204 @property(nonatomic) BOOL defaultSearchEngineEnabled; |
| 205 @property (nonatomic) BOOL passwordManagerChoiceEnabled; | 205 @property(nonatomic) BOOL passwordManagerChoiceEnabled; |
| 206 @property (nonatomic) BOOL passwordManagerButtonEnabled; | 206 @property(nonatomic) BOOL passwordManagerButtonEnabled; |
| 207 @property (nonatomic) BOOL autoFillSettingsButtonEnabled; | 207 @property(nonatomic) BOOL autoFillSettingsButtonEnabled; |
| 208 @property (nonatomic) BOOL showAlternateErrorPagesEnabled; | 208 @property(nonatomic) BOOL showAlternateErrorPagesEnabled; |
| 209 @property (nonatomic) BOOL useSuggestEnabled; | 209 @property(nonatomic) BOOL useSuggestEnabled; |
| 210 @property (nonatomic) BOOL dnsPrefetchEnabled; | 210 @property(nonatomic) BOOL dnsPrefetchEnabled; |
| 211 @property (nonatomic) BOOL safeBrowsingEnabled; | 211 @property(nonatomic) BOOL safeBrowsingEnabled; |
| 212 @property (nonatomic) BOOL metricsReportingEnabled; | 212 @property(nonatomic) BOOL metricsReportingEnabled; |
| 213 @property (nonatomic) BOOL proxiesConfigureButtonEnabled; | 213 @property(nonatomic) BOOL proxiesConfigureButtonEnabled; |
| 214 @end | 214 @end |
| 215 | 215 |
| 216 @interface PreferencesWindowController(Testing) | 216 @interface PreferencesWindowController(Testing) |
| 217 | 217 |
| 218 - (IntegerPrefMember*)lastSelectedPage; | 218 - (IntegerPrefMember*)lastSelectedPage; |
| 219 - (NSToolbar*)toolbar; | 219 - (NSToolbar*)toolbar; |
| 220 - (NSView*)basicsView; | 220 - (NSView*)basicsView; |
| 221 - (NSView*)personalStuffView; | 221 - (NSView*)personalStuffView; |
| 222 - (NSView*)underTheHoodView; | 222 - (NSView*)underTheHoodView; |
| 223 | 223 |
| 224 // Converts the given OptionsPage value (which may be OPTIONS_PAGE_DEFAULT) | 224 // Converts the given OptionsPage value (which may be OPTIONS_PAGE_DEFAULT) |
| 225 // into a concrete OptionsPage value. | 225 // into a concrete OptionsPage value. |
| 226 - (OptionsPage)normalizePage:(OptionsPage)page; | 226 - (OptionsPage)normalizePage:(OptionsPage)page; |
| 227 | 227 |
| 228 // Returns the toolbar item corresponding to the given page. Should be | 228 // Returns the toolbar item corresponding to the given page. Should be |
| 229 // called only after awakeFromNib is. | 229 // called only after awakeFromNib is. |
| 230 - (NSToolbarItem*)getToolbarItemForPage:(OptionsPage)page; | 230 - (NSToolbarItem*)getToolbarItemForPage:(OptionsPage)page; |
| 231 | 231 |
| 232 // Returns the (normalized) page corresponding to the given toolbar item. | 232 // Returns the (normalized) page corresponding to the given toolbar item. |
| 233 // Should be called only after awakeFromNib is. | 233 // Should be called only after awakeFromNib is. |
| 234 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; | 234 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; |
| 235 | 235 |
| 236 // Returns the view corresponding to the given page. Should be called | 236 // Returns the view corresponding to the given page. Should be called |
| 237 // only after awakeFromNib is. | 237 // only after awakeFromNib is. |
| 238 - (NSView*)getPrefsViewForPage:(OptionsPage)page; | 238 - (NSView*)getPrefsViewForPage:(OptionsPage)page; |
| 239 | 239 |
| 240 @end | 240 @end |
| OLD | NEW |