| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/location_bar/keyword_hint_view.h" | 5 #include "chrome/browser/ui/views/location_bar/keyword_hint_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 14 #include "chrome/browser/ui/views/location_bar/background_with_1_px_border.h" | 17 #include "chrome/browser/ui/views/location_bar/background_with_1_px_border.h" |
| 15 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" | 18 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" |
| 16 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 19 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 17 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
| 18 #include "components/search_engines/template_url_service.h" | 21 #include "components/search_engines/template_url_service.h" |
| 19 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 161 |
| 159 views::Label* KeywordHintView::CreateLabel(const gfx::FontList& font_list, | 162 views::Label* KeywordHintView::CreateLabel(const gfx::FontList& font_list, |
| 160 SkColor text_color, | 163 SkColor text_color, |
| 161 SkColor background_color) { | 164 SkColor background_color) { |
| 162 views::Label* label = new views::Label(base::string16(), font_list); | 165 views::Label* label = new views::Label(base::string16(), font_list); |
| 163 label->SetEnabledColor(text_color); | 166 label->SetEnabledColor(text_color); |
| 164 label->SetBackgroundColor(background_color); | 167 label->SetBackgroundColor(background_color); |
| 165 AddChildView(label); | 168 AddChildView(label); |
| 166 return label; | 169 return label; |
| 167 } | 170 } |
| OLD | NEW |