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

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

Issue 23874015: Implement people search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROME_SEARCH_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_CHROME_SEARCH_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_CHROME_SEARCH_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_CHROME_SEARCH_RESULT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/app_list/search_result.h" 11 #include "ui/app_list/search_result.h"
12 12
13 namespace app_list { 13 namespace app_list {
14 14
15 // The type of the search result. This is used for logging so do not change the 15 // The type of the search result. This is used for logging so do not change the
16 // order of this enum. 16 // order of this enum.
17 enum ChromeSearchResultType { 17 enum ChromeSearchResultType {
18 // A result that forwards an omnibox search result. 18 // A result that forwards an omnibox search result.
19 OMNIBOX_SEARCH_RESULT, 19 OMNIBOX_SEARCH_RESULT,
20 // An app result. 20 // An app result.
21 APP_SEARCH_RESULT, 21 APP_SEARCH_RESULT,
22 // A search result from the webstore. 22 // A search result from the webstore.
23 WEBSTORE_SEARCH_RESULT, 23 WEBSTORE_SEARCH_RESULT,
24 // A result that opens a webstore search. 24 // A result that opens a webstore search.
25 SEARCH_WEBSTORE_SEARCH_RESULT, 25 SEARCH_WEBSTORE_SEARCH_RESULT,
26 // A result that opens a people search.
27 SEARCH_PEOPLE_SEARCH_RESULT,
26 SEARCH_RESULT_TYPE_BOUNDARY 28 SEARCH_RESULT_TYPE_BOUNDARY
27 }; 29 };
28 30
29 // Base class of all search results. It provides an additional interface 31 // Base class of all search results. It provides an additional interface
30 // for SearchController to mix the results, duplicate a result from a 32 // for SearchController to mix the results, duplicate a result from a
31 // SearchProvider and pass it to UI and invoke actions on the results when 33 // SearchProvider and pass it to UI and invoke actions on the results when
32 // underlying UI is activated. 34 // underlying UI is activated.
33 class ChromeSearchResult : public SearchResult { 35 class ChromeSearchResult : public SearchResult {
34 public: 36 public:
35 ChromeSearchResult() : relevance_(0.0) {} 37 ChromeSearchResult() : relevance_(0.0) {}
(...skipping 20 matching lines...) Expand all
56 private: 58 private:
57 std::string id_; 59 std::string id_;
58 double relevance_; 60 double relevance_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(ChromeSearchResult); 62 DISALLOW_COPY_AND_ASSIGN(ChromeSearchResult);
61 }; 63 };
62 64
63 } // namespace app_list 65 } // namespace app_list
64 66
65 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_CHROME_SEARCH_RESULT_H_ 67 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_CHROME_SEARCH_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698