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

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

Issue 14949004: ash: Rename tray_views.{h,cc} to tray_utils.{h,cc} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browsertest Created 7 years, 7 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 | Annotate | Revision Log
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/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
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
OLDNEW
« no previous file with comments | « ash/system/session_length_limit/tray_session_length_limit.cc ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698