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

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

Issue 775893005: [AppList] Add a Suggestions Provider to applist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 6 years 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
« no previous file with comments | « ui/app_list/search/mixer.cc ('k') | ui/app_list/search_result.cc » ('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_SEARCH_RESULT_H_ 5 #ifndef UI_APP_LIST_SEARCH_RESULT_H_
6 #define UI_APP_LIST_SEARCH_RESULT_H_ 6 #define UI_APP_LIST_SEARCH_RESULT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 // SearchResult consists of an icon, title text and details text. Title and 26 // SearchResult consists of an icon, title text and details text. Title and
27 // details text can have tagged ranges that are displayed differently from 27 // details text can have tagged ranges that are displayed differently from
28 // default style. 28 // default style.
29 class APP_LIST_EXPORT SearchResult { 29 class APP_LIST_EXPORT SearchResult {
30 public: 30 public:
31 // How the result should be displayed. 31 // How the result should be displayed.
32 enum DisplayType { 32 enum DisplayType {
33 DISPLAY_LIST, 33 DISPLAY_LIST,
34 DISPLAY_TILE, 34 DISPLAY_TILE,
35 DISPLAY_NONE,
35 }; 36 };
36 37
37 // A tagged range in search result text. 38 // A tagged range in search result text.
38 struct APP_LIST_EXPORT Tag { 39 struct APP_LIST_EXPORT Tag {
39 // Similar to ACMatchClassification::Style, the style values are not 40 // Similar to ACMatchClassification::Style, the style values are not
40 // mutually exclusive. 41 // mutually exclusive.
41 enum Style { 42 enum Style {
42 NONE = 0, 43 NONE = 0,
43 URL = 1 << 0, 44 URL = 1 << 0,
44 MATCH = 1 << 1, 45 MATCH = 1 << 1,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 int percent_downloaded_; 161 int percent_downloaded_;
161 162
162 ObserverList<SearchResultObserver> observers_; 163 ObserverList<SearchResultObserver> observers_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(SearchResult); 165 DISALLOW_COPY_AND_ASSIGN(SearchResult);
165 }; 166 };
166 167
167 } // namespace app_list 168 } // namespace app_list
168 169
169 #endif // UI_APP_LIST_SEARCH_RESULT_H_ 170 #endif // UI_APP_LIST_SEARCH_RESULT_H_
OLDNEW
« no previous file with comments | « ui/app_list/search/mixer.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698