| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_FIRST_RUN_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_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 "base/compiler_specific.h" |
| 12 #include "chrome/browser/first_run/first_run.h" | 13 #include "chrome/browser/first_run/first_run.h" |
| 13 #include "chrome/browser/search_engines/template_url_service_observer.h" | 14 #include "chrome/browser/search_engines/template_url_service_observer.h" |
| 14 #include "ui/base/gtk/gtk_signal.h" | 15 #include "ui/base/gtk/gtk_signal.h" |
| 15 | 16 |
| 16 class TemplateURL; | 17 class TemplateURL; |
| 17 class TemplateURLService; | 18 class TemplateURLService; |
| 18 | 19 |
| 19 class FirstRunDialog : public TemplateURLServiceObserver { | 20 class FirstRunDialog : public TemplateURLServiceObserver { |
| 20 public: | 21 public: |
| 21 // Displays the first run UI for reporting opt-in, import data etc. | 22 // Displays the first run UI for reporting opt-in, import data etc. |
| 22 static bool Show(Profile* profile, bool randomize_search_engine_order); | 23 static bool Show(Profile* profile, bool randomize_search_engine_order); |
| 23 | 24 |
| 24 virtual void OnTemplateURLServiceChanged(); | 25 virtual void OnTemplateURLServiceChanged() OVERRIDE; |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 FirstRunDialog(Profile* profile, | 28 FirstRunDialog(Profile* profile, |
| 28 bool show_reporting_dialog, | 29 bool show_reporting_dialog, |
| 29 bool show_search_engines_dialog, | 30 bool show_search_engines_dialog, |
| 30 int* response); | 31 int* response); |
| 31 virtual ~FirstRunDialog(); | 32 virtual ~FirstRunDialog(); |
| 32 | 33 |
| 33 CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int); | 34 CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int); |
| 34 CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineButtonClicked); | 35 CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineButtonClicked); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // crashes and usage stats. | 74 // crashes and usage stats. |
| 74 bool show_reporting_dialog_; | 75 bool show_reporting_dialog_; |
| 75 | 76 |
| 76 // User response (accept or cancel) is returned through this. | 77 // User response (accept or cancel) is returned through this. |
| 77 int* response_; | 78 int* response_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog); | 80 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ | 83 #endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ |
| OLD | NEW |