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_NONE, | |
|
Matt Giuca
2014/12/09 05:34:55
There are tests for search result pages with both
Mathieu
2014/12/09 21:18:26
I added a few DISPLAY_NONE entries and the test st
| |
| 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 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 |