Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
|
tapted
2014/10/03 02:59:17
nit: no (c)
Jun Mukai
2014/10/03 20:23:36
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ | |
| 7 | |
| 8 namespace app_list { | |
| 9 | |
| 10 // The type of the chrome search result. This is used for logging so do not | |
| 11 // change the order of this enum. | |
| 12 enum SearchResultType { | |
| 13 // A result that forwards an omnibox search result. | |
| 14 OMNIBOX_SEARCH_RESULT, | |
| 15 // An app result. | |
| 16 APP_SEARCH_RESULT, | |
| 17 // A search result from the webstore. | |
| 18 WEBSTORE_SEARCH_RESULT, | |
| 19 // A result that opens a webstore search. | |
| 20 SEARCH_WEBSTORE_SEARCH_RESULT, | |
| 21 // A result that opens a people search. | |
| 22 SEARCH_PEOPLE_SEARCH_RESULT, | |
| 23 SEARCH_RESULT_TYPE_BOUNDARY | |
| 24 }; | |
| 25 | |
| 26 // Record a UMA histogram. | |
| 27 void RecordHistogram(SearchResultType type); | |
| 28 | |
| 29 } // namespace app_list | |
| 30 | |
| 31 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_UTIL_H_ | |
| OLD | NEW |