| 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/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/material_design/material_design_controller.h" |
| 8 #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" | 9 #include "ash/system/tray/fixed_sized_image_view.h" |
| 10 #include "ash/system/tray/tray_constants.h" | 10 #include "ash/system/tray/tray_constants.h" |
| 11 #include "ash/system/tray/tray_popup_utils.h" | 11 #include "ash/system/tray/tray_popup_utils.h" |
| 12 #include "ash/system/tray/tri_view.h" | 12 #include "ash/system/tray/tri_view.h" |
| 13 #include "ash/system/tray/view_click_listener.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" |
| (...skipping 369 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 |