| 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 #include "chrome/browser/ui/views/first_run_search_engine_view.h" | 5 #include "chrome/browser/ui/views/first_run_search_engine_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 12 #include "app/resource_bundle.h" | |
| 13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 14 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 15 #include "base/time.h" | 14 #include "base/time.h" |
| 16 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/search_engines/search_engine_type.h" | 17 #include "chrome/browser/search_engines/search_engine_type.h" |
| 19 #include "chrome/browser/search_engines/template_url.h" | 18 #include "chrome/browser/search_engines/template_url.h" |
| 20 #include "chrome/browser/search_engines/template_url_model.h" | 19 #include "chrome/browser/search_engines/template_url_model.h" |
| 21 #include "chrome/browser/ui/options/options_window.h" | 20 #include "chrome/browser/ui/options/options_window.h" |
| 22 #include "gfx/canvas.h" | 21 #include "gfx/canvas.h" |
| 23 #include "gfx/font.h" | 22 #include "gfx/font.h" |
| 24 #include "grit/browser_resources.h" | 23 #include "grit/browser_resources.h" |
| 25 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
| 26 #include "grit/google_chrome_strings.h" | 25 #include "grit/google_chrome_strings.h" |
| 27 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
| 28 #include "grit/locale_settings.h" | 27 #include "grit/locale_settings.h" |
| 29 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
| 29 #include "ui/base/resource/resource_bundle.h" |
| 30 #include "views/controls/button/button.h" | 30 #include "views/controls/button/button.h" |
| 31 #include "views/controls/image_view.h" | 31 #include "views/controls/image_view.h" |
| 32 #include "views/controls/label.h" | 32 #include "views/controls/label.h" |
| 33 #include "views/controls/separator.h" | 33 #include "views/controls/separator.h" |
| 34 #include "views/standard_layout.h" | 34 #include "views/standard_layout.h" |
| 35 #include "views/view_text_utils.h" | 35 #include "views/view_text_utils.h" |
| 36 #include "views/widget/widget.h" | 36 #include "views/widget/widget.h" |
| 37 #include "views/window/window.h" | 37 #include "views/window/window.h" |
| 38 | 38 |
| 39 using base::Time; | 39 using base::Time; |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 } // if (search_engine_choices.size() > 0) | 425 } // if (search_engine_choices.size() > 0) |
| 426 } | 426 } |
| 427 | 427 |
| 428 AccessibilityTypes::Role FirstRunSearchEngineView::GetAccessibleRole() { | 428 AccessibilityTypes::Role FirstRunSearchEngineView::GetAccessibleRole() { |
| 429 return AccessibilityTypes::ROLE_ALERT; | 429 return AccessibilityTypes::ROLE_ALERT; |
| 430 } | 430 } |
| 431 | 431 |
| 432 std::wstring FirstRunSearchEngineView::GetWindowTitle() const { | 432 std::wstring FirstRunSearchEngineView::GetWindowTitle() const { |
| 433 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_FIRSTRUN_DLG_TITLE)); | 433 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_FIRSTRUN_DLG_TITLE)); |
| 434 } | 434 } |
| OLD | NEW |