Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: chrome/common/instant_types.h

Issue 11413018: alternate ntp: implement searchbox api for instant overlay to adopt themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed sreeram's comments, fixed to not set theme fields if no theme Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/instant_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/instant_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698