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 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ |
6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ | 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ |
7 | 7 |
8 #include "ui/app_list/app_list_export.h" | 8 #include "ui/app_list/app_list_export.h" |
9 #include "ui/app_list/views/apps_grid_view.h" | 9 #include "ui/app_list/views/apps_grid_view.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // to the drag_drop_host, eg. dropped on shelf. | 46 // to the drag_drop_host, eg. dropped on shelf. |
47 virtual void DispatchEndDragEventForReparent( | 47 virtual void DispatchEndDragEventForReparent( |
48 bool events_forwarded_to_drag_drop_host) = 0; | 48 bool events_forwarded_to_drag_drop_host) = 0; |
49 | 49 |
50 // Returns true if |point| falls outside of the folder container ink bubble. | 50 // Returns true if |point| falls outside of the folder container ink bubble. |
51 virtual bool IsPointOutsideOfFolderBoundary(const gfx::Point& point) = 0; | 51 virtual bool IsPointOutsideOfFolderBoundary(const gfx::Point& point) = 0; |
52 | 52 |
53 // Returns true if the associated folder item is an OEM folder. | 53 // Returns true if the associated folder item is an OEM folder. |
54 virtual bool IsOEMFolder() const = 0; | 54 virtual bool IsOEMFolder() const = 0; |
55 | 55 |
| 56 // Hides or show the root level's grid view. This is needed so that the |
| 57 // synchronous drag has an icon for reparenting while it loads. |
| 58 virtual void SetRootLevelDragViewVisible(bool visible) = 0; |
| 59 |
56 protected: | 60 protected: |
57 virtual ~AppsGridViewFolderDelegate() {} | 61 virtual ~AppsGridViewFolderDelegate() {} |
58 }; | 62 }; |
59 | 63 |
60 } // namespace app_list | 64 } // namespace app_list |
61 | 65 |
62 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ | 66 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_ |
OLD | NEW |