OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/app_list/app_list_item_view.h" | 5 #include "ash/app_list/app_list_item_view.h" |
6 | 6 |
7 #include "ash/app_list/app_list_item_group_view.h" | 7 #include "ash/app_list/app_list_item_group_view.h" |
8 #include "ash/app_list/app_list_item_model.h" | 8 #include "ash/app_list/app_list_item_model.h" |
9 #include "ash/app_list/app_list_item_view_listener.h" | 9 #include "ash/app_list/app_list_item_view_listener.h" |
10 #include "ash/app_list/drop_shadow_label.h" | 10 #include "ash/app_list/drop_shadow_label.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
15 #include "ui/gfx/font.h" | 15 #include "ui/gfx/font.h" |
16 #include "ui/views/controls/image_view.h" | 16 #include "ui/views/controls/image_view.h" |
17 #include "ui/views/controls/label.h" | 17 #include "ui/views/controls/label.h" |
18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
19 | 19 |
20 namespace aura_shell { | 20 namespace ash { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const double kFocusedScale = 1.1; | 24 const double kFocusedScale = 1.1; |
25 | 25 |
26 const SkColor kTitleColor = SK_ColorWHITE; | 26 const SkColor kTitleColor = SK_ColorWHITE; |
27 | 27 |
28 gfx::Font GetTitleFont() { | 28 gfx::Font GetTitleFont() { |
29 static gfx::Font* font = NULL; | 29 static gfx::Font* font = NULL; |
30 if (!font) { | 30 if (!font) { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 void AppListItemView::OnMouseReleased(const views::MouseEvent& event) { | 152 void AppListItemView::OnMouseReleased(const views::MouseEvent& event) { |
153 views::View* hit_view = GetEventHandlerForPoint(event.location()); | 153 views::View* hit_view = GetEventHandlerForPoint(event.location()); |
154 if (hit_view != this) | 154 if (hit_view != this) |
155 NotifyActivated(event.flags()); | 155 NotifyActivated(event.flags()); |
156 } | 156 } |
157 | 157 |
158 void AppListItemView::OnPaintFocusBorder(gfx::Canvas* canvas) { | 158 void AppListItemView::OnPaintFocusBorder(gfx::Canvas* canvas) { |
159 // No focus border for AppListItemView. | 159 // No focus border for AppListItemView. |
160 } | 160 } |
161 | 161 |
162 } // namespace aura_shell | 162 } // namespace ash |
OLD | NEW |