OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shelf/app_list_button.h" | 5 #include "ash/shelf/app_list_button.h" |
6 | 6 |
7 #include "ash/ash_constants.h" | 7 #include "ash/ash_constants.h" |
8 #include "ash/common/shelf/shelf_item_types.h" | 8 #include "ash/common/shelf/shelf_item_types.h" |
9 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
10 #include "ash/shelf/shelf_view.h" | 10 #include "ash/shelf/shelf_view.h" |
11 #include "ash/shelf/shelf_widget.h" | 11 #include "ash/shelf/shelf_widget.h" |
12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "grit/ash_resources.h" | 14 #include "grit/ash_resources.h" |
15 #include "grit/ash_strings.h" | 15 #include "grit/ash_strings.h" |
| 16 #include "ui/accessibility/ax_enums.h" |
16 #include "ui/accessibility/ax_view_state.h" | 17 #include "ui/accessibility/ax_view_state.h" |
17 #include "ui/app_list/app_list_switches.h" | 18 #include "ui/app_list/app_list_switches.h" |
18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/base/ui_base_switches_util.h" | 21 #include "ui/base/ui_base_switches_util.h" |
21 #include "ui/gfx/canvas.h" | 22 #include "ui/gfx/canvas.h" |
22 #include "ui/views/painter.h" | 23 #include "ui/views/painter.h" |
23 | 24 |
24 namespace ash { | 25 namespace ash { |
25 | 26 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 void AppListButton::SetDrawBackgroundAsActive( | 167 void AppListButton::SetDrawBackgroundAsActive( |
167 bool draw_background_as_active) { | 168 bool draw_background_as_active) { |
168 if (draw_background_as_active_ == draw_background_as_active) | 169 if (draw_background_as_active_ == draw_background_as_active) |
169 return; | 170 return; |
170 draw_background_as_active_ = draw_background_as_active; | 171 draw_background_as_active_ = draw_background_as_active; |
171 SchedulePaint(); | 172 SchedulePaint(); |
172 } | 173 } |
173 | 174 |
174 } // namespace ash | 175 } // namespace ash |
OLD | NEW |