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.
4
5#include "chrome/common/instant_types.h"
6
7InstantSuggestion::InstantSuggestion() {
8}
9
10InstantSuggestion::InstantSuggestion(const base::string16& in_text,
11                                     const std::string& in_metadata)
12    : text(in_text),
13      metadata(in_metadata) {
14}
15
16InstantSuggestion::~InstantSuggestion() {
17}
18
19RGBAColor::RGBAColor()
20    : r(0),
21      g(0),
22      b(0),
23      a(0) {
24}
25
26RGBAColor::~RGBAColor() {
27}
28
29bool RGBAColor::operator==(const RGBAColor& rhs) const {
30  return r == rhs.r &&
31      g == rhs.g &&
32      b == rhs.b &&
33      a == rhs.a;
34}
35
36ThemeBackgroundInfo::ThemeBackgroundInfo()
37    : using_default_theme(true),
38      background_color(),
39      text_color(),
40      link_color(),
41      text_color_light(),
42      header_color(),
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),
47      image_height(0),
48      has_attribution(false),
49      logo_alternate(false) {
50}
51
52ThemeBackgroundInfo::~ThemeBackgroundInfo() {
53}
54
55bool 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;
70}
71