Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_RECOMMENDATION, | |
|
Matt Giuca
2014/12/11 08:00:57
// RECOMMENDATION is essentially the same as TILE,
calamity
2014/12/12 05:00:24
Is this necessary? I don't have a comment there sa
Matt Giuca
2014/12/12 05:13:58
OK fair enough.
| |
| 35 DISPLAY_NONE, | 36 DISPLAY_NONE, |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 // A tagged range in search result text. | 39 // A tagged range in search result text. |
| 39 struct APP_LIST_EXPORT Tag { | 40 struct APP_LIST_EXPORT Tag { |
| 40 // Similar to ACMatchClassification::Style, the style values are not | 41 // Similar to ACMatchClassification::Style, the style values are not |
| 41 // mutually exclusive. | 42 // mutually exclusive. |
| 42 enum Style { | 43 enum Style { |
| 43 NONE = 0, | 44 NONE = 0, |
| 44 URL = 1 << 0, | 45 URL = 1 << 0, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_ |
| OLD | NEW |