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/content_setting_image_view.h" | 5 #include "chrome/browser/ui/views/location_bar/content_setting_image_view.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/themes/theme_properties.h" | 8 #include "chrome/browser/themes/theme_properties.h" |
9 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" | 9 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
10 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" | 10 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" |
11 #include "chrome/browser/ui/views/content_setting_bubble_contents.h" | 11 #include "chrome/browser/ui/views/content_setting_bubble_contents.h" |
12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 12 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
13 #include "chrome/grit/theme_resources.h" | |
14 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
15 #include "ui/base/material_design/material_design_controller.h" | 14 #include "ui/base/material_design/material_design_controller.h" |
16 #include "ui/base/theme_provider.h" | 15 #include "ui/base/theme_provider.h" |
17 #include "ui/events/event_utils.h" | 16 #include "ui/events/event_utils.h" |
18 #include "ui/gfx/color_palette.h" | 17 #include "ui/gfx/color_palette.h" |
19 #include "ui/gfx/color_utils.h" | 18 #include "ui/gfx/color_utils.h" |
20 #include "ui/views/animation/ink_drop.h" | 19 #include "ui/views/animation/ink_drop.h" |
21 #include "ui/views/animation/ink_drop_impl.h" | 20 #include "ui/views/animation/ink_drop_impl.h" |
22 #include "ui/views/controls/image_view.h" | 21 #include "ui/views/controls/image_view.h" |
23 #include "ui/views/controls/label.h" | 22 #include "ui/views/controls/label.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 244 |
246 void ContentSettingImageView::UpdateImage() { | 245 void ContentSettingImageView::UpdateImage() { |
247 SetImage(content_setting_image_model_->GetIcon(GetTextColor()).AsImageSkia()); | 246 SetImage(content_setting_image_model_->GetIcon(GetTextColor()).AsImageSkia()); |
248 } | 247 } |
249 | 248 |
250 void ContentSettingImageView::AnimateIn() { | 249 void ContentSettingImageView::AnimateIn() { |
251 slide_animator_.Show(); | 250 slide_animator_.Show(); |
252 GetInkDrop()->SetShowHighlightOnHover(false); | 251 GetInkDrop()->SetShowHighlightOnHover(false); |
253 GetInkDrop()->SetShowHighlightOnFocus(false); | 252 GetInkDrop()->SetShowHighlightOnFocus(false); |
254 } | 253 } |
OLD | NEW |