Chromium Code Reviews| 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/system/tray/fixed_sized_image_view.h" | 7 #include "ash/system/tray/fixed_sized_image_view.h" |
| 8 #include "ash/system/tray/tray_constants.h" | 8 #include "ash/system/tray/tray_constants.h" |
| 9 #include "ash/system/tray/tray_views.h" | |
|
James Cook
2013/05/05 22:20:45
It's great that you found all these places where t
| |
| 10 #include "ash/system/tray/view_click_listener.h" | 9 #include "ash/system/tray/view_click_listener.h" |
| 11 #include "grit/ui_resources.h" | 10 #include "grit/ui_resources.h" |
| 12 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 13 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 14 #include "ui/views/controls/image_view.h" | 13 #include "ui/views/controls/image_view.h" |
| 15 #include "ui/views/controls/label.h" | 14 #include "ui/views/controls/label.h" |
| 16 #include "ui/views/layout/box_layout.h" | 15 #include "ui/views/layout/box_layout.h" |
| 17 #include "ui/views/layout/fill_layout.h" | 16 #include "ui/views/layout/fill_layout.h" |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 canvas->DrawColor(hover_ ? highlight_color_ : default_color_); | 164 canvas->DrawColor(hover_ ? highlight_color_ : default_color_); |
| 166 } | 165 } |
| 167 | 166 |
| 168 void HoverHighlightView::OnFocus() { | 167 void HoverHighlightView::OnFocus() { |
| 169 ScrollRectToVisible(gfx::Rect(gfx::Point(), size())); | 168 ScrollRectToVisible(gfx::Rect(gfx::Point(), size())); |
| 170 ActionableView::OnFocus(); | 169 ActionableView::OnFocus(); |
| 171 } | 170 } |
| 172 | 171 |
| 173 } // namespace internal | 172 } // namespace internal |
| 174 } // namespace ash | 173 } // namespace ash |
| OLD | NEW |