OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/app_list/views/apps_grid_view.h" | 5 #include "ui/app_list/views/apps_grid_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/guid.h" | 11 #include "base/guid.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ui/accessibility/ax_enums.h" |
14 #include "ui/app_list/app_list_constants.h" | 15 #include "ui/app_list/app_list_constants.h" |
15 #include "ui/app_list/app_list_folder_item.h" | 16 #include "ui/app_list/app_list_folder_item.h" |
16 #include "ui/app_list/app_list_item.h" | 17 #include "ui/app_list/app_list_item.h" |
17 #include "ui/app_list/app_list_switches.h" | 18 #include "ui/app_list/app_list_switches.h" |
18 #include "ui/app_list/pagination_controller.h" | 19 #include "ui/app_list/pagination_controller.h" |
19 #include "ui/app_list/views/app_list_drag_and_drop_host.h" | 20 #include "ui/app_list/views/app_list_drag_and_drop_host.h" |
20 #include "ui/app_list/views/app_list_folder_view.h" | 21 #include "ui/app_list/views/app_list_folder_view.h" |
21 #include "ui/app_list/views/app_list_item_view.h" | 22 #include "ui/app_list/views/app_list_item_view.h" |
22 #include "ui/app_list/views/apps_grid_view_delegate.h" | 23 #include "ui/app_list/views/apps_grid_view_delegate.h" |
23 #include "ui/app_list/views/page_switcher.h" | 24 #include "ui/app_list/views/page_switcher.h" |
(...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2182 | 2183 |
2183 void AppsGridView::SetAsFolderDroppingTarget(const Index& target_index, | 2184 void AppsGridView::SetAsFolderDroppingTarget(const Index& target_index, |
2184 bool is_target_folder) { | 2185 bool is_target_folder) { |
2185 AppListItemView* target_view = | 2186 AppListItemView* target_view = |
2186 GetViewDisplayedAtSlotOnCurrentPage(target_index.slot); | 2187 GetViewDisplayedAtSlotOnCurrentPage(target_index.slot); |
2187 if (target_view) | 2188 if (target_view) |
2188 target_view->SetAsAttemptedFolderTarget(is_target_folder); | 2189 target_view->SetAsAttemptedFolderTarget(is_target_folder); |
2189 } | 2190 } |
2190 | 2191 |
2191 } // namespace app_list | 2192 } // namespace app_list |
OLD | NEW |