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.
5 #ifndef CHROME_BROWSER_FIRST_RUN_DIALOG_H_
6 #define CHROME_BROWSER_FIRST_RUN_DIALOG_H_
8 #import <Cocoa/Cocoa.h>
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
{
16 BOOL makeDefaultBrowser_
;
18 IBOutlet NSArray
* objectsToSize_
;
19 IBOutlet NSButton
* setAsDefaultCheckbox_
;
20 IBOutlet NSButton
* statsCheckbox_
;
24 // Called when the "Start Google Chrome" button is pressed.
25 - (IBAction
)ok
:(id
)sender
;
27 // Called when the "Learn More" button is pressed.
28 - (IBAction
)learnMore
:(id
)sender
;
30 // Properties for bindings.
31 @
property(assign
, nonatomic
) BOOL statsEnabled
;
32 @
property(assign
, nonatomic
) BOOL makeDefaultBrowser
;
36 #endif // CHROME_BROWSER_FIRST_RUN_DIALOG_H_