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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. | 46 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. |
47 virtual SigninDelegate* GetSigninDelegate() = 0; | 47 virtual SigninDelegate* GetSigninDelegate() = 0; |
48 | 48 |
49 // Gets a path to a shortcut for the given app. Returns asynchronously as the | 49 // Gets a path to a shortcut for the given app. Returns asynchronously as the |
50 // shortcut may not exist yet. | 50 // shortcut may not exist yet. |
51 virtual void GetShortcutPathForApp( | 51 virtual void GetShortcutPathForApp( |
52 const std::string& app_id, | 52 const std::string& app_id, |
53 const base::Callback<void(const base::FilePath&)>& callback) = 0; | 53 const base::Callback<void(const base::FilePath&)>& callback) = 0; |
54 | 54 |
55 // Invoked when an AppListeItemModelView is activated by click or enter key. | |
56 virtual void ActivateAppListItem(AppListItemModel* item, | |
57 int event_flags) = 0; | |
58 | |
59 // Invoked to start a new search. Delegate collects query input from | 55 // Invoked to start a new search. Delegate collects query input from |
60 // SearchBoxModel and populates SearchResults. Both models are sub models | 56 // SearchBoxModel and populates SearchResults. Both models are sub models |
61 // of AppListModel. | 57 // of AppListModel. |
62 virtual void StartSearch() = 0; | 58 virtual void StartSearch() = 0; |
63 | 59 |
64 // Invoked to stop the current search. | 60 // Invoked to stop the current search. |
65 virtual void StopSearch() = 0; | 61 virtual void StopSearch() = 0; |
66 | 62 |
67 // Invoked to open the search result. | 63 // Invoked to open the search result. |
68 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0; | 64 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0; |
(...skipping 26 matching lines...) Expand all Loading... |
95 // Shows the app list for the profile specified by |profile_path|. | 91 // Shows the app list for the profile specified by |profile_path|. |
96 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; | 92 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; |
97 | 93 |
98 // Get the start page web contents. Owned by the AppListViewDelegate. | 94 // Get the start page web contents. Owned by the AppListViewDelegate. |
99 virtual content::WebContents* GetStartPageContents() = 0; | 95 virtual content::WebContents* GetStartPageContents() = 0; |
100 }; | 96 }; |
101 | 97 |
102 } // namespace app_list | 98 } // namespace app_list |
103 | 99 |
104 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 100 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |