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

Side by Side Diff: ui/app_list/views/apps_grid_view_folder_delegate.h

Issue 210583004: Make cancelling of app list correctly clean up folder UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/apps_grid_view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_
6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_
7
8 #include "ui/app_list/app_list_export.h"
9 #include "ui/app_list/views/apps_grid_view.h"
10
11 namespace gfx {
12 class Point;
13 }
14
15 namespace ui {
16 class LocatedEvent;
17 }
18
19 namespace app_list {
20
21 class AppListItemView;
22
23 // A delegate which allows an AppsGridView to communicate with its host folder.
24 class APP_LIST_EXPORT AppsGridViewFolderDelegate {
25 public:
26 // Updates the folder view background to show or hide folder container ink
27 // bubble.
28 virtual void UpdateFolderViewBackground(bool show_bubble) = 0;
29
30 // Called when a folder item is dragged out of the folder to be re-parented.
31 // |original_drag_view| is the |drag_view_| inside the folder's grid view.
32 // |drag_point_in_folder_grid| is the last drag point in coordinate of the
33 // AppsGridView inside the folder.
34 virtual void ReparentItem(AppListItemView* original_drag_view,
35 const gfx::Point& drag_point_in_folder_grid) = 0;
36
37 // Dispatches drag event from the hidden grid view to the root level grid view
38 // for re-parenting a folder item.
39 virtual void DispatchDragEventForReparent(AppsGridView::Pointer pointer,
40 const ui::LocatedEvent& event) = 0;
41
42 // Dispatches EndDrag event from the hidden grid view to the root level grid
43 // view for reparenting a folder item.
44 // |events_forwarded_to_drag_drop_host|: True if the dragged item is dropped
45 // to the drag_drop_host, eg. dropped on shelf.
46 virtual void DispatchEndDragEventForReparent(
47 bool events_forwarded_to_drag_drop_host) = 0;
48
49 // Returns true if |point| falls outside of the folder container ink bubble.
50 virtual bool IsPointOutsideOfFolderBoundary(const gfx::Point& point) = 0;
51
52 // Returns true if the associated folder item is an OEM folder.
53 virtual bool IsOEMFolder() const = 0;
54
55 protected:
56 virtual ~AppsGridViewFolderDelegate() {}
57 };
58
59 } // namespace app_list
60
61 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_FOLDER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/apps_grid_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698