OLD | NEW |
(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_ |
OLD | NEW |