| 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 } | 10 } |
| 11 | 11 |
| 12 InstantSuggestion::InstantSuggestion(const string16& in_text, | 12 InstantSuggestion::InstantSuggestion(const string16& in_text, |
| 13 InstantCompleteBehavior in_behavior, | 13 InstantCompleteBehavior in_behavior, |
| 14 InstantSuggestionType in_type) | 14 InstantSuggestionType in_type) |
| 15 : text(in_text), | 15 : text(in_text), |
| 16 behavior(in_behavior), | 16 behavior(in_behavior), |
| 17 type(in_type) { | 17 type(in_type) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 InstantSuggestion::~InstantSuggestion() { | 20 InstantSuggestion::~InstantSuggestion() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 InstantAutocompleteResult::InstantAutocompleteResult() : relevance(0) { | 23 InstantAutocompleteResult::InstantAutocompleteResult() |
| 24 : transition(content::PAGE_TRANSITION_LINK), |
| 25 relevance(0) { |
| 24 } | 26 } |
| 25 | 27 |
| 26 InstantAutocompleteResult::~InstantAutocompleteResult() { | 28 InstantAutocompleteResult::~InstantAutocompleteResult() { |
| 27 } | 29 } |
| 28 | 30 |
| 29 ThemeBackgroundInfo::ThemeBackgroundInfo() | 31 ThemeBackgroundInfo::ThemeBackgroundInfo() |
| 30 : color_r(0), | 32 : color_r(0), |
| 31 color_g(0), | 33 color_g(0), |
| 32 color_b(0), | 34 color_b(0), |
| 33 color_a(0), | 35 color_a(0), |
| 34 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 36 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
| 35 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 37 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
| 36 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), | 38 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), |
| 37 image_height(0) { | 39 image_height(0) { |
| 38 } | 40 } |
| 39 | 41 |
| 40 ThemeBackgroundInfo::~ThemeBackgroundInfo() { | 42 ThemeBackgroundInfo::~ThemeBackgroundInfo() { |
| 41 } | 43 } |
| OLD | NEW |