Home | History | Annotate | Download | only in cocoa
      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 #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* setAsDefaultCheckbox_;
     21   IBOutlet NSButton* statsCheckbox_;
     22   BOOL beenSized_;
     23 }
     24 
     25 // Called when the "Start Google Chrome" button is pressed.
     26 - (IBAction)ok:(id)sender;
     27 
     28 // Called when the "Learn More" button is pressed.
     29 - (IBAction)learnMore:(id)sender;
     30 
     31 // Properties for bindings.
     32 @property(assign, nonatomic) BOOL statsEnabled;
     33 @property(assign, nonatomic) BOOL makeDefaultBrowser;
     34 
     35 @end
     36 
     37 #endif  // CHROME_BROWSER_FIRST_RUN_DIALOG_H_
     38