Revert of Reland https://codereview.chromium.org/298333007/: Enable mac_strip_release...
[chromium-blink-merge.git] / chrome / common / instant_types.cc
blob5d199ae46de6f95e173c6aa4142a162161cd528a
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 base::string16& in_text,
11 const std::string& in_metadata)
12 : text(in_text),
13 metadata(in_metadata) {
16 InstantSuggestion::~InstantSuggestion() {
19 RGBAColor::RGBAColor()
20 : r(0),
21 g(0),
22 b(0),
23 a(0) {
26 RGBAColor::~RGBAColor() {
29 bool RGBAColor::operator==(const RGBAColor& rhs) const {
30 return r == rhs.r &&
31 g == rhs.g &&
32 b == rhs.b &&
33 a == rhs.a;
36 ThemeBackgroundInfo::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) {
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;