blob: 9fa7149ba612cd86e7a7ff370ed032ac86f71ae3 [file] [log] [blame]
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/instant_types.h"
InstantSuggestion::InstantSuggestion()
: behavior(INSTANT_COMPLETE_NOW),
type(INSTANT_SUGGESTION_SEARCH),
autocomplete_match_index(kNoMatchIndex) {
}
InstantSuggestion::InstantSuggestion(const string16& in_text,
InstantCompleteBehavior in_behavior,
InstantSuggestionType in_type,
const string16& in_query,
size_t in_autocomplete_match_index)
: text(in_text),
behavior(in_behavior),
type(in_type),
query(in_query),
autocomplete_match_index(in_autocomplete_match_index) {
}
InstantSuggestion::~InstantSuggestion() {
}
InstantAutocompleteResult::InstantAutocompleteResult()
: transition(content::PAGE_TRANSITION_LINK),
relevance(0) {
}
InstantAutocompleteResult::~InstantAutocompleteResult() {
}
RGBAColor::RGBAColor()
: r(0),
g(0),
b(0),
a(0) {
}
RGBAColor::~RGBAColor() {
}
bool RGBAColor::operator==(const RGBAColor& rhs) const {
return r == rhs.r &&
g == rhs.g &&
b == rhs.b &&
a == rhs.a;
}
ThemeBackgroundInfo::ThemeBackgroundInfo()
: using_default_theme(true),
background_color(),
text_color(),
link_color(),
text_color_light(),
header_color(),
section_border_color(),
image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT),
image_height(0),
has_attribution(false),
logo_alternate(false) {
}
ThemeBackgroundInfo::~ThemeBackgroundInfo() {
}
bool ThemeBackgroundInfo::operator==(const ThemeBackgroundInfo& rhs) const {
return using_default_theme == rhs.using_default_theme &&
background_color == rhs.background_color &&
text_color == rhs.text_color &&
link_color == rhs.link_color &&
text_color_light == rhs.text_color_light &&
header_color == rhs.header_color &&
section_border_color == rhs.section_border_color &&
theme_id == rhs.theme_id &&
image_horizontal_alignment == rhs.image_horizontal_alignment &&
image_vertical_alignment == rhs.image_vertical_alignment &&
image_tiling == rhs.image_tiling &&
image_height == rhs.image_height &&
has_attribution == rhs.has_attribution &&
logo_alternate == rhs.logo_alternate;
}