1// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_FIRST_RUN_DIALOG_H_
6#define CHROME_BROWSER_FIRST_RUN_DIALOG_H_
7
8#import <Cocoa/Cocoa.h>
9
10// Class that acts as a controller for the modal first run dialog.
11// The dialog asks the user's explicit permission for reporting stats to help
12// us improve Chromium.
13@interface FirstRunDialogController : NSWindowController {
14 @private
15  BOOL statsEnabled_;
16  BOOL makeDefaultBrowser_;
17
18  IBOutlet NSArray* objectsToSize_;
19  IBOutlet NSButton* setAsDefaultCheckbox_;
20  IBOutlet NSButton* statsCheckbox_;
21  BOOL beenSized_;
22}
23
24// Called when the "Start Google Chrome" button is pressed.
25- (IBAction)ok:(id)sender;
26
27// Called when the "Learn More" button is pressed.
28- (IBAction)learnMore:(id)sender;
29
30// Properties for bindings.
31@property(assign, nonatomic) BOOL statsEnabled;
32@property(assign, nonatomic) BOOL makeDefaultBrowser;
33
34@end
35
36#endif  // CHROME_BROWSER_FIRST_RUN_DIALOG_H_
37