| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/autocomplete/autocomplete_edit.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/search_engines/template_url_model.h" | 29 #include "chrome/browser/search_engines/template_url_model.h" |
| 30 #include "chrome/common/notification_service.h" | 30 #include "chrome/common/notification_service.h" |
| 31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 32 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
| 33 #include "googleurl/src/url_util.h" | 33 #include "googleurl/src/url_util.h" |
| 34 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
| 35 | 35 |
| 36 /////////////////////////////////////////////////////////////////////////////// | 36 /////////////////////////////////////////////////////////////////////////////// |
| 37 // AutocompleteEditController | 37 // AutocompleteEditController |
| 38 | 38 |
| 39 bool AutocompleteEditController::AcceptCurrentInstantPreview() { |
| 40 return false; |
| 41 } |
| 42 |
| 39 AutocompleteEditController::~AutocompleteEditController() { | 43 AutocompleteEditController::~AutocompleteEditController() { |
| 40 } | 44 } |
| 41 | 45 |
| 42 /////////////////////////////////////////////////////////////////////////////// | 46 /////////////////////////////////////////////////////////////////////////////// |
| 43 // AutocompleteEditModel::State | 47 // AutocompleteEditModel::State |
| 44 | 48 |
| 45 AutocompleteEditModel::State::State(bool user_input_in_progress, | 49 AutocompleteEditModel::State::State(bool user_input_in_progress, |
| 46 const std::wstring& user_text, | 50 const std::wstring& user_text, |
| 47 const std::wstring& keyword, | 51 const std::wstring& keyword, |
| 48 bool is_keyword_hint, | 52 bool is_keyword_hint, |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 i->inline_autocomplete_offset != std::wstring::npos) { | 825 i->inline_autocomplete_offset != std::wstring::npos) { |
| 822 suggested_text = WideToUTF16(i->fill_into_edit.substr( | 826 suggested_text = WideToUTF16(i->fill_into_edit.substr( |
| 823 i->inline_autocomplete_offset)); | 827 i->inline_autocomplete_offset)); |
| 824 break; | 828 break; |
| 825 } | 829 } |
| 826 } | 830 } |
| 827 } | 831 } |
| 828 } | 832 } |
| 829 controller_->OnSetSuggestedSearchText(suggested_text); | 833 controller_->OnSetSuggestedSearchText(suggested_text); |
| 830 } | 834 } |
| OLD | NEW |