summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/preferences_window_controller.h
blob: 1b1fd28c2cc74a4e531a4bbf392e4ade1801a94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Cocoa/Cocoa.h>

class PrefService;

// A window controller that handles the preferences window.
@interface PreferencesWindowController : NSWindowController {
 @private
  PrefService* prefs_;  // weak ref
}

// Designated initializer. |prefs| should not be NULL.
- (id)initWithPrefs:(PrefService*)prefs;

// Show the preferences window.
- (IBAction)showPreferences:(id)sender;

@end

// NSNotification sent when the prefs window is closed.
extern NSString* const kUserDoneEditingPrefsNotification;