| OLD | NEW |
| 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 |
| 11 @class CustomHomePagesModel; | 11 @class CustomHomePagesModel; |
| 12 @class KeywordEditorCocoaController; |
| 12 class PrefObserverBridge; | 13 class PrefObserverBridge; |
| 13 class PrefService; | 14 class PrefService; |
| 14 class Profile; | 15 class Profile; |
| 15 @class SearchEngineListModel; | 16 @class SearchEngineListModel; |
| 16 | 17 |
| 17 // A window controller that handles the preferences window. The bulk of the | 18 // A window controller that handles the preferences window. The bulk of the |
| 18 // work is handled via Cocoa Bindings and getter/setter methods that wrap | 19 // work is handled via Cocoa Bindings and getter/setter methods that wrap |
| 19 // cross-platform PrefMember objects. When prefs change in the back-end | 20 // cross-platform PrefMember objects. When prefs change in the back-end |
| 20 // (that is, outside of this UI), our observer recieves a notification and can | 21 // (that is, outside of this UI), our observer recieves a notification and can |
| 21 // tickle the KVO to update the UI so we are always in sync. The bindings are | 22 // tickle the KVO to update the UI so we are always in sync. The bindings are |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 IBOutlet NSArrayController* customPagesArrayController_; | 36 IBOutlet NSArrayController* customPagesArrayController_; |
| 36 | 37 |
| 37 // Basics panel | 38 // Basics panel |
| 38 IntegerPrefMember restoreOnStartup_; | 39 IntegerPrefMember restoreOnStartup_; |
| 39 scoped_nsobject<CustomHomePagesModel> customPagesSource_; | 40 scoped_nsobject<CustomHomePagesModel> customPagesSource_; |
| 40 BooleanPrefMember newTabPageIsHomePage_; | 41 BooleanPrefMember newTabPageIsHomePage_; |
| 41 StringPrefMember homepage_; | 42 StringPrefMember homepage_; |
| 42 BooleanPrefMember showHomeButton_; | 43 BooleanPrefMember showHomeButton_; |
| 43 BooleanPrefMember showPageOptionButtons_; | 44 BooleanPrefMember showPageOptionButtons_; |
| 44 scoped_nsobject<SearchEngineListModel> searchEngineModel_; | 45 scoped_nsobject<SearchEngineListModel> searchEngineModel_; |
| 46 KeywordEditorCocoaController* keywordEditorController_; // weak |
| 45 // Used when creating a new home page url to make the new cell editable. | 47 // Used when creating a new home page url to make the new cell editable. |
| 46 BOOL pendingSelectForEdit_; | 48 BOOL pendingSelectForEdit_; |
| 47 | 49 |
| 48 // User Data panel | 50 // User Data panel |
| 49 BooleanPrefMember askSavePasswords_; | 51 BooleanPrefMember askSavePasswords_; |
| 50 BooleanPrefMember formAutofill_; | 52 BooleanPrefMember formAutofill_; |
| 51 | 53 |
| 52 // Under the hood panel | 54 // Under the hood panel |
| 53 IBOutlet NSView* advancedView_; | 55 IBOutlet NSView* advancedView_; |
| 54 IBOutlet NSScrollView* advancedScroller_; | 56 IBOutlet NSScrollView* advancedScroller_; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 82 - (IBAction)resetThemeToDefault:(id)sender; | 84 - (IBAction)resetThemeToDefault:(id)sender; |
| 83 - (IBAction)themesGallery:(id)sender; | 85 - (IBAction)themesGallery:(id)sender; |
| 84 | 86 |
| 85 // Usable from cocoa bindings to hook up the custom home pages table. | 87 // Usable from cocoa bindings to hook up the custom home pages table. |
| 86 @property(readonly) CustomHomePagesModel* customPagesSource; | 88 @property(readonly) CustomHomePagesModel* customPagesSource; |
| 87 | 89 |
| 88 // NSNotification sent when the prefs window is closed. | 90 // NSNotification sent when the prefs window is closed. |
| 89 extern NSString* const kUserDoneEditingPrefsNotification; | 91 extern NSString* const kUserDoneEditingPrefsNotification; |
| 90 | 92 |
| 91 @end | 93 @end |
| OLD | NEW |