OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/bubble_icon_view.h" | 5 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" |
6 | 6 |
7 #include "chrome/browser/command_updater.h" | 7 #include "chrome/browser/command_updater.h" |
| 8 #include "ui/accessibility/ax_enums.h" |
8 #include "ui/accessibility/ax_view_state.h" | 9 #include "ui/accessibility/ax_view_state.h" |
9 #include "ui/base/material_design/material_design_controller.h" | 10 #include "ui/base/material_design/material_design_controller.h" |
10 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
11 #include "ui/gfx/color_palette.h" | 12 #include "ui/gfx/color_palette.h" |
12 #include "ui/gfx/color_utils.h" | 13 #include "ui/gfx/color_utils.h" |
13 #include "ui/gfx/paint_vector_icon.h" | 14 #include "ui/gfx/paint_vector_icon.h" |
14 #include "ui/native_theme/native_theme.h" | 15 #include "ui/native_theme/native_theme.h" |
15 #include "ui/views/animation/ink_drop_highlight.h" | 16 #include "ui/views/animation/ink_drop_highlight.h" |
16 #include "ui/views/bubble/bubble_dialog_delegate.h" | 17 #include "ui/views/bubble/bubble_dialog_delegate.h" |
17 | 18 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 image_->SetImage( | 212 image_->SetImage( |
212 gfx::CreateVectorIcon(GetVectorIcon(), icon_size, icon_color)); | 213 gfx::CreateVectorIcon(GetVectorIcon(), icon_size, icon_color)); |
213 } | 214 } |
214 | 215 |
215 void BubbleIconView::SetActiveInternal(bool active) { | 216 void BubbleIconView::SetActiveInternal(bool active) { |
216 if (active_ == active) | 217 if (active_ == active) |
217 return; | 218 return; |
218 active_ = active; | 219 active_ = active; |
219 UpdateIcon(); | 220 UpdateIcon(); |
220 } | 221 } |
OLD | NEW |