| 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/browser/options_window.h" | 9 #include "chrome/browser/options_window.h" |
| 10 #include "chrome/browser/pref_member.h" | 10 #include "chrome/browser/pref_member.h" |
| 11 | 11 |
| 12 namespace PreferencesWindowControllerInternal { | 12 namespace PreferencesWindowControllerInternal { |
| 13 class PersonalDataManagerObserver; | 13 class PersonalDataManagerObserver; |
| 14 class PrefObserverBridge; | 14 class PrefObserverBridge; |
| 15 } | 15 } |
| 16 | 16 |
| 17 @class CustomHomePagesModel; | 17 @class CustomHomePagesModel; |
| 18 @class FontLanguageSettingsController; | 18 @class FontLanguageSettingsController; |
| 19 class PrefService; | 19 class PrefService; |
| 20 class Profile; | 20 class Profile; |
| 21 class ProfileSyncService; | 21 class ProfileSyncService; |
| 22 @class SearchEngineListModel; | 22 @class SearchEngineListModel; |
| 23 | 23 |
| 24 // A window controller that handles the preferences window. The bulk of the | 24 // A window controller that handles the preferences window. The bulk of the |
| 25 // work is handled via Cocoa Bindings and getter/setter methods that wrap | 25 // work is handled via Cocoa Bindings and getter/setter methods that wrap |
| 26 // cross-platform PrefMember objects. When prefs change in the back-end | 26 // cross-platform PrefMember objects. When prefs change in the back-end |
| 27 // (that is, outside of this UI), our observer recieves a notification and can | 27 // (that is, outside of this UI), our observer receives a notification and can |
| 28 // tickle the KVO to update the UI so we are always in sync. The bindings are | 28 // tickle the KVO to update the UI so we are always in sync. The bindings are |
| 29 // specified in the nib file. Preferences are persisted into the back-end | 29 // specified in the nib file. Preferences are persisted into the back-end |
| 30 // as they are changed in the UI, and are thus immediately available even while | 30 // as they are changed in the UI, and are thus immediately available even while |
| 31 // the window is still open. When the window closes, a notification is sent | 31 // the window is still open. When the window closes, a notification is sent |
| 32 // via the system NotificationCenter. This can be used as a signal to | 32 // via the system NotificationCenter. This can be used as a signal to |
| 33 // release this controller, as it's likely the client wants to enforce there | 33 // release this controller, as it's likely the client wants to enforce there |
| 34 // only being one (we don't do that internally as it makes it very difficult | 34 // only being one (we don't do that internally as it makes it very difficult |
| 35 // to unit test). | 35 // to unit test). |
| 36 @interface PreferencesWindowController : NSWindowController { | 36 @interface PreferencesWindowController : NSWindowController { |
| 37 @private | 37 @private |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Returns the (normalized) page corresponding to the given toolbar item. | 178 // Returns the (normalized) page corresponding to the given toolbar item. |
| 179 // Should be called only after awakeFromNib is. | 179 // Should be called only after awakeFromNib is. |
| 180 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; | 180 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; |
| 181 | 181 |
| 182 // Returns the view corresponding to the given page. Should be called | 182 // Returns the view corresponding to the given page. Should be called |
| 183 // only after awakeFromNib is. | 183 // only after awakeFromNib is. |
| 184 - (NSView*)getPrefsViewForPage:(OptionsPage)page; | 184 - (NSView*)getPrefsViewForPage:(OptionsPage)page; |
| 185 | 185 |
| 186 @end | 186 @end |
| 187 | 187 |
| OLD | NEW |