Chromium Code Reviews| Index: chrome/common/instant_types.h |
| diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h |
| index 07f4eb457b5dce288f283f5e19f208fd2ae46a6b..fc81e6be0bb5bcf9a378cbfa4da458f91d12b247 100644 |
| --- a/chrome/common/instant_types.h |
| +++ b/chrome/common/instant_types.h |
| @@ -156,6 +156,32 @@ struct ThemeBackgroundInfo { |
| // True if theme has attribution logo. |
| // Value is only valid if |theme_id| is valid. |
| bool has_attribution; |
| + |
| + bool operator==(const ThemeBackgroundInfo& other) const { |
|
samarth
2013/05/03 21:24:42
Don't overload operators please. Just add a helpe
|
| + return color_r == other.color_r && |
| + color_g == other.color_g && |
| + color_b == other.color_b && |
| + color_a == other.color_a && |
| + theme_id == other.theme_id && |
| + image_horizontal_alignment == other.image_horizontal_alignment && |
| + image_vertical_alignment == other.image_vertical_alignment && |
| + image_tiling == other.image_tiling && |
| + image_height == other.image_height && |
| + has_attribution == other.has_attribution; |
| + } |
| + |
| + bool operator!=(const ThemeBackgroundInfo& other) const { |
| + return color_r != other.color_r || |
| + color_g != other.color_g || |
| + color_b != other.color_b || |
| + color_a != other.color_a || |
| + theme_id != other.theme_id || |
| + image_horizontal_alignment != other.image_horizontal_alignment || |
| + image_vertical_alignment != other.image_vertical_alignment || |
| + image_tiling != other.image_tiling || |
| + image_height != other.image_height || |
| + has_attribution != other.has_attribution; |
| + } |
| }; |
| struct InstantMostVisitedItem { |