| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_FIRST_RUN_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_ |
| 6 #define CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_ | 6 #define CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 typedef struct _GtkButton GtkButton; | 9 typedef struct _GtkButton GtkButton; |
| 10 typedef struct _GtkWidget GtkWidget; | 10 typedef struct _GtkWidget GtkWidget; |
| 11 | 11 |
| 12 #include "app/gtk_signal.h" | 12 #include "app/gtk_signal.h" |
| 13 #include "chrome/browser/first_run.h" | 13 #include "chrome/browser/first_run/first_run.h" |
| 14 #include "chrome/browser/importer/importer.h" | 14 #include "chrome/browser/importer/importer.h" |
| 15 | 15 |
| 16 class FirstRunDialog : public ImportObserver { | 16 class FirstRunDialog : public ImportObserver { |
| 17 public: | 17 public: |
| 18 // Displays the first run UI for reporting opt-in, import data etc. | 18 // Displays the first run UI for reporting opt-in, import data etc. |
| 19 static bool Show(Profile* profile, ProcessSingleton* process_singleton); | 19 static bool Show(Profile* profile, ProcessSingleton* process_singleton); |
| 20 | 20 |
| 21 // Overridden from ImportObserver: | 21 // Overridden from ImportObserver: |
| 22 virtual void ImportCanceled() { | 22 virtual void ImportCanceled() { |
| 23 FirstRunDone(); | 23 FirstRunDone(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // User response (accept or cancel) is returned through this. | 59 // User response (accept or cancel) is returned through this. |
| 60 int& response_; | 60 int& response_; |
| 61 | 61 |
| 62 // Utility class that does the actual import. | 62 // Utility class that does the actual import. |
| 63 scoped_refptr<ImporterHost> importer_host_; | 63 scoped_refptr<ImporterHost> importer_host_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog); | 65 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_ | 68 #endif // CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_ |
| OLD | NEW |