| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Invoked to start a new search. Delegate collects query input from | 85 // Invoked to start a new search. Delegate collects query input from |
| 86 // SearchBoxModel and populates SearchResults. Both models are sub models | 86 // SearchBoxModel and populates SearchResults. Both models are sub models |
| 87 // of AppListModel. | 87 // of AppListModel. |
| 88 virtual void StartSearch() = 0; | 88 virtual void StartSearch() = 0; |
| 89 | 89 |
| 90 // Invoked to stop the current search. | 90 // Invoked to stop the current search. |
| 91 virtual void StopSearch() = 0; | 91 virtual void StopSearch() = 0; |
| 92 | 92 |
| 93 // Invoked to open the search result. | 93 // Invoked to open the search result. |
| 94 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0; | 94 virtual void OpenSearchResult(SearchResult* result, |
| 95 bool auto_launch, |
| 96 int event_flags) = 0; |
| 95 | 97 |
| 96 // Called to invoke a custom action on |result|. |action_index| corresponds | 98 // Called to invoke a custom action on |result|. |action_index| corresponds |
| 97 // to the index of an icon in |result.action_icons()|. | 99 // to the index of an icon in |result.action_icons()|. |
| 98 virtual void InvokeSearchResultAction(SearchResult* result, | 100 virtual void InvokeSearchResultAction(SearchResult* result, |
| 99 int action_index, | 101 int action_index, |
| 100 int event_flags) = 0; | 102 int event_flags) = 0; |
| 101 | 103 |
| 102 // Gets the timeout for auto-launching the first search result, or 0 if the | 104 // Gets the timeout for auto-launching the first search result, or 0 if the |
| 103 // auto-launch should not happen for the current search session. | 105 // auto-launch should not happen for the current search session. |
| 104 virtual base::TimeDelta GetAutoLaunchTimeout() = 0; | 106 virtual base::TimeDelta GetAutoLaunchTimeout() = 0; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 virtual const Users& GetUsers() const = 0; | 147 virtual const Users& GetUsers() const = 0; |
| 146 | 148 |
| 147 // Adds/removes an observer for profile changes. | 149 // Adds/removes an observer for profile changes. |
| 148 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 150 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
| 149 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 151 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
| 150 }; | 152 }; |
| 151 | 153 |
| 152 } // namespace app_list | 154 } // namespace app_list |
| 153 | 155 |
| 154 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 156 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |