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

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

Issue 2484863005: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Fix another conflict Created 4 years, 1 month 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.h ('k') | ui/app_list/views/apps_grid_view_folder_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DELEGATE_H_ 5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "ui/app_list/app_list_export.h" 11 #include "ui/app_list/app_list_export.h"
12 12
13 namespace base {
14 class FilePath;
15 }
16
17 namespace app_list { 13 namespace app_list {
18 14
19 class AppListItem; 15 class AppListItem;
20 16
21 class APP_LIST_EXPORT AppsGridViewDelegate { 17 class APP_LIST_EXPORT AppsGridViewDelegate {
22 public: 18 public:
23 // Invoked when an item is activated on the grid view. |event_flags| contains 19 // Invoked when an item is activated on the grid view. |event_flags| contains
24 // the flags of the keyboard/mouse event that triggers the activation request. 20 // the flags of the keyboard/mouse event that triggers the activation request.
25 virtual void ActivateApp(AppListItem* item, int event_flags) = 0; 21 virtual void ActivateApp(AppListItem* item, int event_flags) = 0;
26 22
27 // Called by the root grid view to cancel a drag that started inside a folder. 23 // Called by the root grid view to cancel a drag that started inside a folder.
28 // This can occur when the root grid is visible for a reparent and its model 24 // This can occur when the root grid is visible for a reparent and its model
29 // changes, necessitating a cancel of the drag operation. 25 // changes, necessitating a cancel of the drag operation.
30 virtual void CancelDragInActiveFolder() = 0; 26 virtual void CancelDragInActiveFolder() = 0;
31 27
32 protected: 28 protected:
33 virtual ~AppsGridViewDelegate() {} 29 virtual ~AppsGridViewDelegate() {}
34 }; 30 };
35 31
36 } // namespace app_list 32 } // namespace app_list
37 33
38 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_DELEGATE_H_ 34 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_grid_view.h ('k') | ui/app_list/views/apps_grid_view_folder_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698