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

Unified Diff: chrome/common/instant_types.h

Issue 16413002: Moved theme related state from BrowserInstantController to InstantService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 6 months 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
Index: chrome/common/instant_types.h
diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h
index 3826075092af7e1b6060198c6632c96c92f5d818..b8ef033864a385dddaade52fa4136dab64f7deca 100644
--- a/chrome/common/instant_types.h
+++ b/chrome/common/instant_types.h
@@ -130,6 +130,7 @@ enum ThemeBackgroundImageAlignment {
THEME_BKGRND_IMAGE_ALIGN_TOP,
THEME_BKGRND_IMAGE_ALIGN_RIGHT,
THEME_BKGRND_IMAGE_ALIGN_BOTTOM,
+ THEME_BKGRND_INVALID_ALIGNMENT,
};
// The tiling of the theme background image.
@@ -138,12 +139,17 @@ enum ThemeBackgroundImageTiling {
THEME_BKGRND_IMAGE_REPEAT_X,
THEME_BKGRND_IMAGE_REPEAT_Y,
THEME_BKGRND_IMAGE_REPEAT,
+ THEME_BKGRND_INVALID_REPEAT,
};
struct ThemeBackgroundInfo {
ThemeBackgroundInfo();
~ThemeBackgroundInfo();
+ void Initialize();
+ bool IsValid() const;
+ bool operator==(const ThemeBackgroundInfo& rhs) const;
+
// 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;

Powered by Google App Engine
This is Rietveld 408576698