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 #include "chrome/browser/views/default_search_view.h" | 5 #include "chrome/browser/views/default_search_view.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/search_engines/template_url.h" | 14 #include "chrome/browser/search_engines/template_url.h" |
15 #include "chrome/browser/search_engines/template_url_model.h" | 15 #include "chrome/browser/search_engines/template_url_model.h" |
16 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 16 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
17 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
18 #include "gfx/canvas.h" | 18 #include "gfx/canvas.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "grit/locale_settings.h" | 20 #include "grit/locale_settings.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "views/controls/button/native_button.h" | 22 #include "views/controls/button/native_button.h" |
23 #include "views/controls/image_view.h" | 23 #include "views/controls/image_view.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 this, | 292 this, |
293 IDS_DEFAULT_SEARCH_PROMPT_CURRENT, | 293 IDS_DEFAULT_SEARCH_PROMPT_CURRENT, |
294 default_short_name); | 294 default_short_name); |
295 layout->AddView(default_provider_button_); | 295 layout->AddView(default_provider_button_); |
296 proposed_provider_button_ = CreateProviderChoiceButton( | 296 proposed_provider_button_ = CreateProviderChoiceButton( |
297 this, | 297 this, |
298 IDS_DEFAULT_SEARCH_PROMPT_PROPOSED, | 298 IDS_DEFAULT_SEARCH_PROMPT_PROPOSED, |
299 proposed_short_name); | 299 proposed_short_name); |
300 layout->AddView(proposed_provider_button_); | 300 layout->AddView(proposed_provider_button_); |
301 } | 301 } |
OLD | NEW |