| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |