Chromium Code Reviews| Index: chrome/common/instant_types.h |
| diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h |
| index 627a565791f5e76828e00d17f4bb153dc564de7c..456ac58c14f74ec0fba22318b3dd5b14d58dfef4 100644 |
| --- a/chrome/common/instant_types.h |
| +++ b/chrome/common/instant_types.h |
| @@ -5,6 +5,8 @@ |
| #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
| #define CHROME_COMMON_INSTANT_TYPES_H_ |
| +#include <string> |
| + |
| #include "base/string16.h" |
| #include "googleurl/src/gurl.h" |
| @@ -93,4 +95,32 @@ enum InstantShownReason { |
| INSTANT_SHOWN_ZERO_SUGGESTIONS, |
| }; |
| +// Specifies information required for NTP Instant overlay to adopt the browser's |
| +// theme. |
| +struct ThemeBackgroundInfo { |
| + ThemeBackgroundInfo(); |
| + ~ThemeBackgroundInfo(); |
| + |
| + // The theme background color in RGBA format where the R, G, B and A values |
| + // are between 0 and 255 inclusive and always valid. |
| + int color_r; |
| + int color_g; |
| + int color_b; |
| + int color_a; |
|
palmer
2012/11/19 22:23:20
Wasn't A supposed to be a double between 0 and 1?
kuan
2012/11/20 00:12:44
the original type is an int, which i convert to do
|
| + |
| + // The theme id for the theme background image. |
| + // Value is only valid if there's a custom theme background image. |
| + std::string theme_id; |
| + |
| + // The theme background image alignment is only valid if |theme_id| is valid. |
| + int image_alignment; |
| + |
| + // The theme background image tiling is only valid if |theme_id| is valid. |
| + int image_tiling; |
| + |
| + // The theme background image height. |
| + // Value is only valid if |theme_id| is valid. |
| + uint16 image_height; |
| +}; |
| + |
| #endif // CHROME_COMMON_INSTANT_TYPES_H_ |