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

Side by Side Diff: chrome/browser/views/first_run_view_base.h

Issue 2808006: Allow randomized search engines in selection dialog.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_VIEWS_FIRST_RUN_VIEW_BASE_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_ 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
7 7
8 #include "chrome/browser/importer/importer.h" 8 #include "chrome/browser/importer/importer.h"
9 #include "views/view.h" 9 #include "views/view.h"
10 #include "views/window/dialog_delegate.h" 10 #include "views/window/dialog_delegate.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // This class abstracts the code that creates the dialog look for the two 24 // This class abstracts the code that creates the dialog look for the two
25 // first-run dialogs. This amounts to the bitmap, the two separators, the 25 // first-run dialogs. This amounts to the bitmap, the two separators, the
26 // progress throbber and some common resize code. 26 // progress throbber and some common resize code.
27 class FirstRunViewBase : public views::View, 27 class FirstRunViewBase : public views::View,
28 public views::ButtonListener, 28 public views::ButtonListener,
29 public views::DialogDelegate { 29 public views::DialogDelegate {
30 public: 30 public:
31 explicit FirstRunViewBase(Profile* profile, bool homepage_defined, 31 explicit FirstRunViewBase(Profile* profile, bool homepage_defined,
32 int import_items, int dont_import_items, 32 int import_items, int dont_import_items,
33 bool search_engine_experiment); 33 bool search_engine_experiment,
34 bool randomize_search_engine_experiment);
34 virtual ~FirstRunViewBase(); 35 virtual ~FirstRunViewBase();
35 36
36 // Overridden from views::View. 37 // Overridden from views::View.
37 virtual void Layout(); 38 virtual void Layout();
38 39
39 // Overridden from views::WindowDelegate. 40 // Overridden from views::WindowDelegate.
40 virtual bool CanResize() const; 41 virtual bool CanResize() const;
41 virtual bool CanMaximize() const; 42 virtual bool CanMaximize() const;
42 virtual bool IsAlwaysOnTop() const; 43 virtual bool IsAlwaysOnTop() const;
43 virtual bool HasAlwaysOnTopMenu() const; 44 virtual bool HasAlwaysOnTopMenu() const;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 scoped_refptr<ImporterHost> importer_host_; 88 scoped_refptr<ImporterHost> importer_host_;
88 Profile* profile_; 89 Profile* profile_;
89 views::Checkbox* default_browser_; 90 views::Checkbox* default_browser_;
90 views::Label* non_default_browser_label_; 91 views::Label* non_default_browser_label_;
91 92
92 protected: 93 protected:
93 bool homepage_defined_; 94 bool homepage_defined_;
94 int import_items_; 95 int import_items_;
95 int dont_import_items_; 96 int dont_import_items_;
96 bool search_engine_experiment_; 97 bool search_engine_experiment_;
98 bool randomize_search_engine_experiment_;
97 99
98 private: 100 private:
99 // Initializes the controls on the dialog. 101 // Initializes the controls on the dialog.
100 void SetupControls(); 102 void SetupControls();
101 views::ImageView* background_image_; 103 views::ImageView* background_image_;
102 views::Separator* separator_1_; 104 views::Separator* separator_1_;
103 views::Separator* separator_2_; 105 views::Separator* separator_2_;
104 int preferred_width_; 106 int preferred_width_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(FirstRunViewBase); 108 DISALLOW_COPY_AND_ASSIGN(FirstRunViewBase);
107 }; 109 };
108 110
109 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_ 111 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698