| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 // The tiling of the theme background image. | 118 // The tiling of the theme background image. |
| 119 enum ThemeBackgroundImageTiling { | 119 enum ThemeBackgroundImageTiling { |
| 120 THEME_BKGRND_IMAGE_NO_REPEAT, | 120 THEME_BKGRND_IMAGE_NO_REPEAT, |
| 121 THEME_BKGRND_IMAGE_REPEAT_X, | 121 THEME_BKGRND_IMAGE_REPEAT_X, |
| 122 THEME_BKGRND_IMAGE_REPEAT_Y, | 122 THEME_BKGRND_IMAGE_REPEAT_Y, |
| 123 THEME_BKGRND_IMAGE_REPEAT, | 123 THEME_BKGRND_IMAGE_REPEAT, |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 // Update IsThemeInfoEqual in chrome/renderer/searchbox/searchbox.cc |
| 127 // whenever any fields are added/removed. |
| 126 struct ThemeBackgroundInfo { | 128 struct ThemeBackgroundInfo { |
| 127 ThemeBackgroundInfo(); | 129 ThemeBackgroundInfo(); |
| 128 ~ThemeBackgroundInfo(); | 130 ~ThemeBackgroundInfo(); |
| 129 | 131 |
| 130 // The theme background color in RGBA format where the R, G, B and A values | 132 // The theme background color in RGBA format where the R, G, B and A values |
| 131 // are between 0 and 255 inclusive and always valid. | 133 // are between 0 and 255 inclusive and always valid. |
| 132 int color_r; | 134 int color_r; |
| 133 int color_g; | 135 int color_g; |
| 134 int color_b; | 136 int color_b; |
| 135 int color_a; | 137 int color_a; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 151 | 153 |
| 152 // The theme background image height. | 154 // The theme background image height. |
| 153 // Value is only valid if |theme_id| is valid. | 155 // Value is only valid if |theme_id| is valid. |
| 154 uint16 image_height; | 156 uint16 image_height; |
| 155 | 157 |
| 156 // True if theme has attribution logo. | 158 // True if theme has attribution logo. |
| 157 // Value is only valid if |theme_id| is valid. | 159 // Value is only valid if |theme_id| is valid. |
| 158 bool has_attribution; | 160 bool has_attribution; |
| 159 }; | 161 }; |
| 160 | 162 |
| 163 // Update AreMostVisitedItemsEqual in chrome/renderer/searchbox/searchbox.cc |
| 164 // whenever any fields are added/removed. |
| 161 struct InstantMostVisitedItem { | 165 struct InstantMostVisitedItem { |
| 162 // The URL of the Most Visited item. | 166 // The URL of the Most Visited item. |
| 163 GURL url; | 167 GURL url; |
| 164 | 168 |
| 165 // The title of the Most Visited page. May be empty, in which case the |url| | 169 // The title of the Most Visited page. May be empty, in which case the |url| |
| 166 // is used as the title. | 170 // is used as the title. |
| 167 string16 title; | 171 string16 title; |
| 168 }; | 172 }; |
| 169 | 173 |
| 170 // An InstantMostVisitedItem along with its assigned restricted ID. | 174 // An InstantMostVisitedItem along with its assigned restricted ID. |
| 171 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> | 175 typedef std::pair<InstantRestrictedID, InstantMostVisitedItem> |
| 172 InstantMostVisitedItemIDPair; | 176 InstantMostVisitedItemIDPair; |
| 173 | 177 |
| 174 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 178 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
| OLD | NEW |