[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / first_run_dialog.h
blob2020ff08def50f6118181e77987030f6b574e927
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 {
14 @private
15 BOOL statsEnabled_;
16 BOOL makeDefaultBrowser_;
18 IBOutlet NSArray* objectsToSize_;
19 IBOutlet NSButton* setAsDefaultCheckbox_;
20 IBOutlet NSButton* statsCheckbox_;
21 BOOL beenSized_;
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;
34 @end
36 #endif // CHROME_BROWSER_FIRST_RUN_DIALOG_H_