| 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 class PrefService; | 7 class PrefService; |
| 8 | 8 |
| 9 // A window controller that handles the preferences window. | 9 // A window controller that handles the preferences window. |
| 10 @interface PreferencesWindowController : NSWindowController { | 10 @interface PreferencesWindowController : NSWindowController { |
| 11 @private | 11 @private |
| 12 PrefService* prefs_; // weak ref | 12 PrefService* prefs_; // weak ref |
| 13 } | 13 } |
| 14 | 14 |
| 15 // Designated initializer. |prefs| should not be NULL. | 15 // Designated initializer. |prefs| should not be NULL. |
| 16 - (id)initWithPrefs:(PrefService*)prefs; | 16 - (id)initWithPrefs:(PrefService*)prefs; |
| 17 | 17 |
| 18 // Show the preferences window. | 18 // Show the preferences window. |
| 19 - (IBAction)showPreferences:(id)sender; | 19 - (IBAction)showPreferences:(id)sender; |
| 20 | 20 |
| 21 @end | 21 @end |
| 22 |
| 23 // NSNotification sent when the prefs window is closed. |
| 24 extern NSString* const kUserDoneEditingPrefsNotification; |
| OLD | NEW |