Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/cocoa/first_run_dialog.h

Issue 3223010: Add search engine selection dialog for Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/cocoa/first_run_dialog.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_FIRST_RUN_DIALOG_H_ 5 #ifndef CHROME_BROWSER_FIRST_RUN_DIALOG_H_
6 #define CHROME_BROWSER_FIRST_RUN_DIALOG_H_ 6 #define CHROME_BROWSER_FIRST_RUN_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 // Class that acts as a controller for the modal first run dialog. 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 12 // The dialog asks the user's explicit permission for reporting stats to help
13 // us improve Chromium. 13 // us improve Chromium.
14 @interface FirstRunDialogController : NSWindowController { 14 @interface FirstRunDialogController : NSWindowController {
15 @private 15 @private
16 BOOL userDidCancel_;
17 BOOL statsEnabled_; 16 BOOL statsEnabled_;
18 BOOL statsCheckboxHidden_;
19 BOOL makeDefaultBrowser_; 17 BOOL makeDefaultBrowser_;
20 BOOL importBookmarks_;
21 int browserImportSelectedIndex_;
22 NSArray* browserImportList_;
23 BOOL browserImportListHidden_;
24 18
25 IBOutlet NSArray* objectsToSize_; 19 IBOutlet NSArray* objectsToSize_;
26 IBOutlet NSButton* statsCheckbox_; 20 IBOutlet NSButton* statsCheckbox_;
27 BOOL beenSized_; 21 BOOL beenSized_;
28 } 22 }
29 23
30 // Called when the "Start Google Chrome" button is pressed. 24 // Called when the "Start Google Chrome" button is pressed.
31 - (IBAction)ok:(id)sender; 25 - (IBAction)ok:(id)sender;
32 26
33 // Cancel button calls this.
34 - (IBAction)cancel:(id)sender;
35
36 // Called when the "Learn More" button is pressed. 27 // Called when the "Learn More" button is pressed.
37 - (IBAction)learnMore:(id)sender; 28 - (IBAction)learnMore:(id)sender;
38 29
39 // Properties for bindings. 30 // Properties for bindings.
40 @property(assign, nonatomic) BOOL userDidCancel;
41 @property(assign, nonatomic) BOOL statsEnabled; 31 @property(assign, nonatomic) BOOL statsEnabled;
42 @property(assign, nonatomic) BOOL statsCheckboxHidden;
43 @property(assign, nonatomic) BOOL makeDefaultBrowser; 32 @property(assign, nonatomic) BOOL makeDefaultBrowser;
44 @property(assign, nonatomic) BOOL importBookmarks;
45 @property(assign, nonatomic) int browserImportSelectedIndex;
46 @property(retain, nonatomic) NSArray* browserImportList;
47 @property(assign, nonatomic) BOOL browserImportListHidden;
48 33
49 @end 34 @end
50 35
51 #endif // CHROME_BROWSER_FIRST_RUN_DIALOG_H_ 36 #endif // CHROME_BROWSER_FIRST_RUN_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/cocoa/first_run_dialog.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698