| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
| 6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // suggestion metadata details. Set to kNoMatchIndex if the | 105 // suggestion metadata details. Set to kNoMatchIndex if the |
| 106 // suggestion is displayed on the Instant NTP and set to a positive value if | 106 // suggestion is displayed on the Instant NTP and set to a positive value if |
| 107 // the suggestion is displayed on the Local NTP. | 107 // the suggestion is displayed on the Local NTP. |
| 108 size_t autocomplete_match_index; | 108 size_t autocomplete_match_index; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // An InstantAutocompleteResult along with its assigned restricted ID. | 111 // An InstantAutocompleteResult along with its assigned restricted ID. |
| 112 typedef std::pair<InstantRestrictedID, InstantAutocompleteResult> | 112 typedef std::pair<InstantRestrictedID, InstantAutocompleteResult> |
| 113 InstantAutocompleteResultIDPair; | 113 InstantAutocompleteResultIDPair; |
| 114 | 114 |
| 115 // How to interpret the size (height or width) of the Instant overlay (preview). | |
| 116 enum InstantSizeUnits { | |
| 117 // As an absolute number of pixels. | |
| 118 INSTANT_SIZE_PIXELS, | |
| 119 | |
| 120 // As a percentage of the height or width of the containing (parent) view. | |
| 121 INSTANT_SIZE_PERCENT, | |
| 122 }; | |
| 123 | |
| 124 // The alignment of the theme background image. | 115 // The alignment of the theme background image. |
| 125 enum ThemeBackgroundImageAlignment { | 116 enum ThemeBackgroundImageAlignment { |
| 126 THEME_BKGRND_IMAGE_ALIGN_CENTER, | 117 THEME_BKGRND_IMAGE_ALIGN_CENTER, |
| 127 THEME_BKGRND_IMAGE_ALIGN_LEFT, | 118 THEME_BKGRND_IMAGE_ALIGN_LEFT, |
| 128 THEME_BKGRND_IMAGE_ALIGN_TOP, | 119 THEME_BKGRND_IMAGE_ALIGN_TOP, |
| 129 THEME_BKGRND_IMAGE_ALIGN_RIGHT, | 120 THEME_BKGRND_IMAGE_ALIGN_RIGHT, |
| 130 THEME_BKGRND_IMAGE_ALIGN_BOTTOM, | 121 THEME_BKGRND_IMAGE_ALIGN_BOTTOM, |
| 131 }; | 122 }; |
| 132 | 123 |
| 133 // The tiling of the theme background image. | 124 // The tiling of the theme background image. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // The title of the Most Visited page. May be empty, in which case the |url| | 206 // The title of the Most Visited page. May be empty, in which case the |url| |
| 216 // is used as the title. | 207 // is used as the title. |
| 217 string16 title; | 208 string16 title; |
| 218 }; | 209 }; |
| 219 | 210 |
| 220 // An InstantMostVisitedItem along with its assigned restricted ID. | 211 // An InstantMostVisitedItem along with its assigned restricted ID. |
| 221 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> | 212 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> |
| 222 InstantMostVisitedItemIDPair; | 213 InstantMostVisitedItemIDPair; |
| 223 | 214 |
| 224 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 215 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
| OLD | NEW |