Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: ash/system/tray/hover_highlight_view.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/actionable_view.cc ('k') | ash/system/tray/label_tray_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/tray/actionable_view.cc ('k') | ash/system/tray/label_tray_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698