first_run_dialog.h revision 21d179b334e59e9a3bfcaed4c4430bef1bc5759d
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 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_FIRST_RUN_DIALOG_H_ 6#define CHROME_BROWSER_FIRST_RUN_DIALOG_H_ 7#pragma once 8 9#import <Cocoa/Cocoa.h> 10 11// Class that acts as a controller for the modal first run dialog. 12// The dialog asks the user's explicit permission for reporting stats to help 13// us improve Chromium. 14@interface FirstRunDialogController : NSWindowController { 15 @private 16 BOOL statsEnabled_; 17 BOOL makeDefaultBrowser_; 18 19 IBOutlet NSArray* objectsToSize_; 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