Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698