1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/common/instant_types.h"
7 InstantSuggestion::InstantSuggestion() {
10 InstantSuggestion::InstantSuggestion(const string16& in_text,
11 const std::string& in_metadata)
13 metadata(in_metadata) {
16 InstantSuggestion::~InstantSuggestion() {
19 RGBAColor::RGBAColor()
26 RGBAColor::~RGBAColor() {
29 bool RGBAColor::operator==(const RGBAColor& rhs) const {
36 ThemeBackgroundInfo::ThemeBackgroundInfo()
37 : using_default_theme(true),
43 section_border_color(),
44 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
45 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
46 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT),
48 has_attribution(false),
49 logo_alternate(false) {
52 ThemeBackgroundInfo::~ThemeBackgroundInfo() {
55 bool ThemeBackgroundInfo::operator==(const ThemeBackgroundInfo& rhs) const {
56 return using_default_theme == rhs.using_default_theme &&
57 background_color == rhs.background_color &&
58 text_color == rhs.text_color &&
59 link_color == rhs.link_color &&
60 text_color_light == rhs.text_color_light &&
61 header_color == rhs.header_color &&
62 section_border_color == rhs.section_border_color &&
63 theme_id == rhs.theme_id &&
64 image_horizontal_alignment == rhs.image_horizontal_alignment &&
65 image_vertical_alignment == rhs.image_vertical_alignment &&
66 image_tiling == rhs.image_tiling &&
67 image_height == rhs.image_height &&
68 has_attribution == rhs.has_attribution &&
69 logo_alternate == rhs.logo_alternate;