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

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

Issue 149348: Linux: Add First Run UI. (Closed)
Patch Set: merge to tot Created 11 years, 5 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
« no previous file with comments | « chrome/browser/first_run_gtk.cc ('k') | chrome/browser/gtk/first_run_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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_GTK_FIRST_RUN_DIALOG_H_
6 #define CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
7
8 #include "chrome/browser/first_run.h"
9 #include "chrome/browser/importer/importer.h"
10
11 class FirstRunDialog {
12 public:
13 // Displays the first run UI for reporting opt-in, import data etc.
14 static bool Show(Profile* profile);
15
16 private:
17 FirstRunDialog(Profile* profile, int& response);
18 ~FirstRunDialog() { }
19
20 static void HandleOnResponseDialog(GtkWidget* widget,
21 int response,
22 FirstRunDialog* user_data) {
23 user_data->OnDialogResponse(widget, response);
24 }
25 void OnDialogResponse(GtkWidget* widget, int response);
26
27 // First Run UI Dialog
28 GtkWidget* dialog_;
29
30 // Crash reporting checkbox
31 GtkWidget* report_crashes_;
32
33 // Make browser default checkbox
34 GtkWidget* make_default_;
35
36 // Import data checkbox
37 GtkWidget* import_data_;
38
39 // Combo box that displays list of profiles from which we can import.
40 GtkWidget* import_profile_;
41
42 // Our current profile
43 Profile* profile_;
44
45 // User response (accept or cancel) is returned through this.
46 int& response_;
47
48 // Utility class that does the actual import.
49 scoped_refptr<ImporterHost> importer_host_;
50
51 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog);
52 };
53
54 #endif // CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run_gtk.cc ('k') | chrome/browser/gtk/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698