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

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

Issue 99238: Add notification (and unit test) for closing prefs window so it can be cleane... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 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;
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/cocoa/preferences_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698