summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/first_run_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/first_run_view.h')
-rw-r--r--chrome/browser/views/first_run_view.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/chrome/browser/views/first_run_view.h b/chrome/browser/views/first_run_view.h
index e5f1d7c..7ada990 100644
--- a/chrome/browser/views/first_run_view.h
+++ b/chrome/browser/views/first_run_view.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -7,6 +7,7 @@
#include "chrome/browser/views/first_run_view_base.h"
#include "chrome/browser/views/first_run_customize_view.h"
+#include "chrome/browser/views/first_run_search_engine_view.h"
#include "views/controls/link.h"
#include "views/view.h"
#include "views/window/dialog_delegate.h"
@@ -18,15 +19,18 @@ class Window;
class Profile;
class ImporterHost;
+class TemplateURL;
// FirstRunView implements the dialog that welcomes to user to Chrome after
// a fresh install.
class FirstRunView : public FirstRunViewBase,
public views::LinkController,
- public FirstRunCustomizeView::CustomizeViewObserver {
+ public FirstRunCustomizeView::CustomizeViewObserver,
+ public FirstRunSearchEngineView::SearchEngineViewObserver {
public:
explicit FirstRunView(Profile* profile, bool homepage_defined,
- int import_items, int dont_import_items);
+ int import_items, int dont_import_items,
+ bool search_engine_experiment);
virtual ~FirstRunView();
bool accepted() const { return accepted_;}
@@ -50,6 +54,9 @@ class FirstRunView : public FirstRunViewBase,
virtual void CustomizeAccepted();
virtual void CustomizeCanceled();
+ // Overridden from SearchEngineViewObserver:
+ virtual void SearchEngineChosen(const TemplateURL* default_search);
+
private:
// Initializes the controls on the dialog.
void SetupControls();
@@ -57,6 +64,9 @@ class FirstRunView : public FirstRunViewBase,
// Creates the dialog that allows the user to customize work items.
void OpenCustomizeDialog();
+ // Creates the search engine selection dialog.
+ void OpenSearchEngineDialog();
+
views::Label* welcome_label_;
views::Label* actions_label_;
views::Label* actions_import_;