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

Side by Side Diff: chrome/browser/ui/app_list/search/search_util.h

Issue 1095793002: Implement onOpenResult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to CHECK. Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_
7 7
8 namespace app_list { 8 namespace app_list {
9 9
10 // The type of the chrome search result. This is used for logging so do not 10 // The type of the chrome search result. This is used for logging so do not
11 // change the order of this enum. 11 // change the order of this enum.
12 enum SearchResultType { 12 enum SearchResultType {
13 // A result that forwards an omnibox search result. 13 // A result that forwards an omnibox search result.
14 OMNIBOX_SEARCH_RESULT, 14 OMNIBOX_SEARCH_RESULT,
15 // An app result. 15 // An app result.
16 APP_SEARCH_RESULT, 16 APP_SEARCH_RESULT,
17 // A search result from the webstore. 17 // A search result from the webstore.
18 WEBSTORE_SEARCH_RESULT, 18 WEBSTORE_SEARCH_RESULT,
19 // A result that opens a webstore search. 19 // A result that opens a webstore search.
20 SEARCH_WEBSTORE_SEARCH_RESULT, 20 SEARCH_WEBSTORE_SEARCH_RESULT,
21 // A result that opens a people search. 21 // A result that opens a people search.
22 SEARCH_PEOPLE_SEARCH_RESULT, 22 SEARCH_PEOPLE_SEARCH_RESULT,
23 // A result that opens a suggestion. 23 // A result that opens a suggestion.
24 SUGGESTIONS_SEARCH_RESULT, 24 SUGGESTIONS_SEARCH_RESULT,
25 // A result that is provided by the custom launcher search provider.
26 LAUNCHER_SEARCH_PROVIDER_RESULT,
25 // Boundary is always last. 27 // Boundary is always last.
26 SEARCH_RESULT_TYPE_BOUNDARY 28 SEARCH_RESULT_TYPE_BOUNDARY
27 }; 29 };
28 30
29 // Record a UMA histogram. 31 // Record a UMA histogram.
30 void RecordHistogram(SearchResultType type); 32 void RecordHistogram(SearchResultType type);
31 33
32 } // namespace app_list 34 } // namespace app_list
33 35
34 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ 36 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698