| 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 is_url(false) { |
| 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 bool in_is_url) |
| 15 : text(in_text), | 15 : text(in_text), |
| 16 behavior(in_behavior), | 16 behavior(in_behavior), |
| 17 type(in_type) { | 17 is_url(in_is_url) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 InstantSuggestion::~InstantSuggestion() { | 20 InstantSuggestion::~InstantSuggestion() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 InstantAutocompleteResult::InstantAutocompleteResult() | 23 InstantAutocompleteResult::InstantAutocompleteResult() |
| 24 : transition(content::PAGE_TRANSITION_LINK), | 24 : transition(content::PAGE_TRANSITION_LINK), |
| 25 relevance(0) { | 25 relevance(0) { |
| 26 } | 26 } |
| 27 | 27 |
| 28 InstantAutocompleteResult::~InstantAutocompleteResult() { | 28 InstantAutocompleteResult::~InstantAutocompleteResult() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 ThemeBackgroundInfo::ThemeBackgroundInfo() | 31 ThemeBackgroundInfo::ThemeBackgroundInfo() |
| 32 : color_r(0), | 32 : color_r(0), |
| 33 color_g(0), | 33 color_g(0), |
| 34 color_b(0), | 34 color_b(0), |
| 35 color_a(0), | 35 color_a(0), |
| 36 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 36 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
| 37 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), | 37 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), |
| 38 image_top_offset(0), | 38 image_top_offset(0), |
| 39 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), | 39 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), |
| 40 image_height(0) { | 40 image_height(0) { |
| 41 } | 41 } |
| 42 | 42 |
| 43 ThemeBackgroundInfo::~ThemeBackgroundInfo() { | 43 ThemeBackgroundInfo::~ThemeBackgroundInfo() { |
| 44 } | 44 } |
| 45 |
| 46 MostVisitedItem::MostVisitedItem() { |
| 47 } |
| 48 |
| 49 MostVisitedItem::MostVisitedItem(const GURL& in_url, const string16& in_title) |
| 50 : url(in_url), |
| 51 title(in_title) { |
| 52 } |
| 53 |
| 54 MostVisitedItem::~MostVisitedItem() { |
| 55 } |
| OLD | NEW |