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

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

Issue 151903007: Introduces UMA for app-list voice search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('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 (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
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
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_
OLDNEW
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698