OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/instant_types.h" | 5 #include "chrome/common/instant_types.h" |
6 | 6 |
7 InstantSuggestion::InstantSuggestion() | 7 InstantSuggestion::InstantSuggestion() |
8 : behavior(INSTANT_COMPLETE_NOW), | 8 : behavior(INSTANT_COMPLETE_NOW), |
9 type(INSTANT_SUGGESTION_SEARCH), | 9 type(INSTANT_SUGGESTION_SEARCH), |
10 autocomplete_match_index(kNoMatchIndex) { | 10 autocomplete_match_index(kNoMatchIndex) { |
(...skipping 29 matching lines...) Expand all Loading... |
40 color_a(0), | 40 color_a(0), |
41 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 41 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
42 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 42 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
43 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), | 43 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), |
44 image_height(0), | 44 image_height(0), |
45 has_attribution(false) { | 45 has_attribution(false) { |
46 } | 46 } |
47 | 47 |
48 ThemeBackgroundInfo::~ThemeBackgroundInfo() { | 48 ThemeBackgroundInfo::~ThemeBackgroundInfo() { |
49 } | 49 } |
| 50 |
| 51 bool ThemeBackgroundInfo::operator==(const ThemeBackgroundInfo& rhs) const { |
| 52 return color_r == rhs.color_r && |
| 53 color_g == rhs.color_g && |
| 54 color_b == rhs.color_b && |
| 55 color_a == rhs.color_a && |
| 56 theme_id == rhs.theme_id && |
| 57 image_horizontal_alignment == rhs.image_horizontal_alignment && |
| 58 image_vertical_alignment == rhs.image_vertical_alignment && |
| 59 image_tiling == rhs.image_tiling && |
| 60 image_height == rhs.image_height && |
| 61 has_attribution == rhs.has_attribution; |
| 62 } |
OLD | NEW |