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

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 25859005: Elim ActivateAppListItem, ChromeAppListItem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix static cast in AppModelBuilder, add AppType Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. 42 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
43 virtual SigninDelegate* GetSigninDelegate() = 0; 43 virtual SigninDelegate* GetSigninDelegate() = 0;
44 44
45 // Gets a path to a shortcut for the given app. Returns asynchronously as the 45 // Gets a path to a shortcut for the given app. Returns asynchronously as the
46 // shortcut may not exist yet. 46 // shortcut may not exist yet.
47 virtual void GetShortcutPathForApp( 47 virtual void GetShortcutPathForApp(
48 const std::string& app_id, 48 const std::string& app_id,
49 const base::Callback<void(const base::FilePath&)>& callback) = 0; 49 const base::Callback<void(const base::FilePath&)>& callback) = 0;
50 50
51 // Invoked when an AppListeItemModelView is activated by click or enter key.
52 virtual void ActivateAppListItem(AppListItemModel* item,
53 int event_flags) = 0;
54
55 // Invoked to start a new search. Delegate collects query input from 51 // Invoked to start a new search. Delegate collects query input from
56 // SearchBoxModel and populates SearchResults. Both models are sub models 52 // SearchBoxModel and populates SearchResults. Both models are sub models
57 // of AppListModel. 53 // of AppListModel.
58 virtual void StartSearch() = 0; 54 virtual void StartSearch() = 0;
59 55
60 // Invoked to stop the current search. 56 // Invoked to stop the current search.
61 virtual void StopSearch() = 0; 57 virtual void StopSearch() = 0;
62 58
63 // Invoked to open the search result. 59 // Invoked to open the search result.
64 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0; 60 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0;
(...skipping 23 matching lines...) Expand all
88 // Open the feedback UI. 84 // Open the feedback UI.
89 virtual void OpenFeedback() = 0; 85 virtual void OpenFeedback() = 0;
90 86
91 // Shows the app list for the profile specified by |profile_path|. 87 // Shows the app list for the profile specified by |profile_path|.
92 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; 88 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0;
93 }; 89 };
94 90
95 } // namespace app_list 91 } // namespace app_list
96 92
97 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 93 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698