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

Side by Side Diff: chrome/browser/ui/views/default_search_view.h

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thread safe handling of Profiles Created 9 years, 4 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) 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_VIEWS_DEFAULT_SEARCH_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "content/browser/tab_contents/constrained_window.h" 12 #include "content/browser/tab_contents/constrained_window.h"
13 #include "views/window/dialog_delegate.h" 13 #include "views/window/dialog_delegate.h"
14 14
15 #if defined(TOOLKIT_USES_GTK) 15 #if defined(TOOLKIT_USES_GTK)
16 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 16 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
17 #endif 17 #endif
18 18
19 class PrefService; 19 class Profile;
20 class TabContents; 20 class TabContents;
21 class TemplateURL; 21 class TemplateURL;
22 class TemplateURLService; 22 class TemplateURLService;
23 23
24 namespace gfx { 24 namespace gfx {
25 class Canvas; 25 class Canvas;
26 } 26 }
27 27
28 namespace views { 28 namespace views {
29 class Button; 29 class Button;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual views::Widget* GetWidget(); 65 virtual views::Widget* GetWidget();
66 virtual const views::Widget* GetWidget() const; 66 virtual const views::Widget* GetWidget() const;
67 67
68 private: 68 private:
69 // Takes ownership of |proposed_default_turl|. 69 // Takes ownership of |proposed_default_turl|.
70 DefaultSearchView(TabContents* tab_contents, 70 DefaultSearchView(TabContents* tab_contents,
71 TemplateURL* proposed_default_turl, 71 TemplateURL* proposed_default_turl,
72 TemplateURLService* template_url_service); 72 TemplateURLService* template_url_service);
73 73
74 // Initializes the labels and controls in the view. 74 // Initializes the labels and controls in the view.
75 void SetupControls(PrefService* prefs); 75 void SetupControls(Profile* prefs);
76 76
77 // Image of browser search box with grey background and bubble arrow. 77 // Image of browser search box with grey background and bubble arrow.
78 views::ImageView* background_image_; 78 views::ImageView* background_image_;
79 79
80 // Button for the current default search engine. 80 // Button for the current default search engine.
81 views::View* default_provider_button_; 81 views::View* default_provider_button_;
82 82
83 // Button for the newly proposed search engine. 83 // Button for the newly proposed search engine.
84 views::View* proposed_provider_button_; 84 views::View* proposed_provider_button_;
85 85
86 // The proposed new default search engine. 86 // The proposed new default search engine.
87 scoped_ptr<TemplateURL> proposed_turl_; 87 scoped_ptr<TemplateURL> proposed_turl_;
88 88
89 TemplateURLService* template_url_service_; 89 TemplateURLService* template_url_service_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(DefaultSearchView); 91 DISALLOW_COPY_AND_ASSIGN(DefaultSearchView);
92 }; 92 };
93 93
94 #endif // CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698