| Index: chrome/common/instant_types.h
|
| diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h
|
| index 627a565791f5e76828e00d17f4bb153dc564de7c..ddb4052ae37ccbff0e6f48bbf1b6eb2eaf163d04 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,52 @@ enum InstantShownReason {
|
| INSTANT_SHOWN_ZERO_SUGGESTIONS,
|
| };
|
|
|
| +// The alignment of the theme background image.
|
| +enum ThemeBackgroundImageAlignment {
|
| + THEME_BKGRND_IMAGE_ALIGN_CENTER,
|
| + THEME_BKGRND_IMAGE_ALIGN_LEFT,
|
| + THEME_BKGRND_IMAGE_ALIGN_TOP,
|
| + THEME_BKGRND_IMAGE_ALIGN_RIGHT,
|
| + THEME_BKGRND_IMAGE_ALIGN_BOTTOM,
|
| +};
|
| +
|
| +// The tiling of the theme background image.
|
| +enum ThemeBackgroundImageTiling {
|
| + THEME_BKGRND_IMAGE_NO_REPEAT,
|
| + THEME_BKGRND_IMAGE_REPEAT_X,
|
| + THEME_BKGRND_IMAGE_REPEAT_Y,
|
| + THEME_BKGRND_IMAGE_REPEAT,
|
| +};
|
| +
|
| +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;
|
| +
|
| + // 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 horizontal alignment is only valid if |theme_id|
|
| + // is valid.
|
| + ThemeBackgroundImageAlignment image_horizontal_alignment;
|
| +
|
| + // The theme background image vertical alignment is only valid if |theme_id|
|
| + // is valid.
|
| + ThemeBackgroundImageAlignment image_vertical_alignment;
|
| +
|
| + // The theme background image tiling is only valid if |theme_id| is valid.
|
| + ThemeBackgroundImageTiling 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_
|
|
|