OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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. |
| 4 |
| 5 #include "chrome/common/instant_types.h" |
| 6 |
| 7 InstantSuggestion::InstantSuggestion() |
| 8 : behavior(INSTANT_COMPLETE_NOW), |
| 9 type(INSTANT_SUGGESTION_SEARCH) { |
| 10 } |
| 11 |
| 12 InstantSuggestion::InstantSuggestion(const string16& in_text, |
| 13 InstantCompleteBehavior in_behavior, |
| 14 InstantSuggestionType in_type) |
| 15 : text(in_text), |
| 16 behavior(in_behavior), |
| 17 type(in_type) { |
| 18 } |
| 19 |
| 20 InstantSuggestion::~InstantSuggestion() { |
| 21 } |
| 22 |
| 23 void InstantSuggestion::Clear() { |
| 24 text.clear(); |
| 25 behavior = INSTANT_COMPLETE_NOW; |
| 26 type = INSTANT_SUGGESTION_SEARCH; |
| 27 } |
| 28 |
| 29 InstantAutocompleteResult::InstantAutocompleteResult() |
| 30 : is_search(false), |
| 31 relevance(0) { |
| 32 } |
| 33 |
| 34 InstantAutocompleteResult::~InstantAutocompleteResult() { |
| 35 } |
OLD | NEW |