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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/first_run_dialog.h
diff --git a/chrome/browser/gtk/first_run_dialog.h b/chrome/browser/gtk/first_run_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..cea21d387ed68742de1d0f139919cc7c0ca8aa0e
--- /dev/null
+++ b/chrome/browser/gtk/first_run_dialog.h
@@ -0,0 +1,54 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
+#define CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
+
+#include "chrome/browser/first_run.h"
+#include "chrome/browser/importer/importer.h"
+
+class FirstRunDialog {
+ public:
+ // Displays the first run UI for reporting opt-in, import data etc.
+ static bool Show(Profile* profile);
+
+ private:
+ FirstRunDialog(Profile* profile, int& response);
+ ~FirstRunDialog() { }
+
+ static void HandleOnResponseDialog(GtkWidget* widget,
+ int response,
+ FirstRunDialog* user_data) {
+ user_data->OnDialogResponse(widget, response);
+ }
+ void OnDialogResponse(GtkWidget* widget, int response);
+
+ // First Run UI Dialog
+ GtkWidget* dialog_;
+
+ // Crash reporting checkbox
+ GtkWidget* report_crashes_;
+
+ // Make browser default checkbox
+ GtkWidget* make_default_;
+
+ // Import data checkbox
+ GtkWidget* import_data_;
+
+ // Combo box that displays list of profiles from which we can import.
+ GtkWidget* import_profile_;
+
+ // Our current profile
+ Profile* profile_;
+
+ // User response (accept or cancel) is returned through this.
+ int& response_;
+
+ // Utility class that does the actual import.
+ scoped_refptr<ImporterHost> importer_host_;
+
+ DISALLOW_COPY_AND_ASSIGN(FirstRunDialog);
+};
+
+#endif // CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
« 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