OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ash/common/system/tray/hover_highlight_view.h" | 5 #include "ash/system/tray/hover_highlight_view.h" |
6 | 6 |
7 #include "ash/common/material_design/material_design_controller.h" | 7 #include "ash/common/material_design/material_design_controller.h" |
8 #include "ash/common/system/tray/fixed_sized_image_view.h" | |
9 #include "ash/common/system/tray/tray_constants.h" | |
10 #include "ash/common/system/tray/tray_popup_utils.h" | |
11 #include "ash/common/system/tray/tri_view.h" | |
12 #include "ash/common/system/tray/view_click_listener.h" | |
13 #include "ash/resources/vector_icons/vector_icons.h" | 8 #include "ash/resources/vector_icons/vector_icons.h" |
| 9 #include "ash/system/tray/fixed_sized_image_view.h" |
| 10 #include "ash/system/tray/tray_constants.h" |
| 11 #include "ash/system/tray/tray_popup_utils.h" |
| 12 #include "ash/system/tray/tri_view.h" |
| 13 #include "ash/system/tray/view_click_listener.h" |
14 #include "ui/accessibility/ax_node_data.h" | 14 #include "ui/accessibility/ax_node_data.h" |
15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/font_list.h" | 17 #include "ui/gfx/font_list.h" |
18 #include "ui/gfx/paint_vector_icon.h" | 18 #include "ui/gfx/paint_vector_icon.h" |
19 #include "ui/resources/grit/ui_resources.h" | 19 #include "ui/resources/grit/ui_resources.h" |
20 #include "ui/views/border.h" | 20 #include "ui/views/border.h" |
21 #include "ui/views/controls/image_view.h" | 21 #include "ui/views/controls/image_view.h" |
22 #include "ui/views/controls/label.h" | 22 #include "ui/views/controls/label.h" |
23 #include "ui/views/layout/box_layout.h" | 23 #include "ui/views/layout/box_layout.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 void HoverHighlightView::OnPaintBackground(gfx::Canvas* canvas) { | 387 void HoverHighlightView::OnPaintBackground(gfx::Canvas* canvas) { |
388 canvas->DrawColor(hover_ ? highlight_color_ : default_color_); | 388 canvas->DrawColor(hover_ ? highlight_color_ : default_color_); |
389 } | 389 } |
390 | 390 |
391 void HoverHighlightView::OnFocus() { | 391 void HoverHighlightView::OnFocus() { |
392 ScrollRectToVisible(gfx::Rect(gfx::Point(), size())); | 392 ScrollRectToVisible(gfx::Rect(gfx::Point(), size())); |
393 ActionableView::OnFocus(); | 393 ActionableView::OnFocus(); |
394 } | 394 } |
395 | 395 |
396 } // namespace ash | 396 } // namespace ash |
OLD | NEW |