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

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

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
« no previous file with comments | « app/tree_model.cc ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "chrome/browser/autocomplete/autocomplete_match.h" 10 #include "chrome/browser/autocomplete/autocomplete_match.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Sent prior to OnAutoCompleteAccept and before the model has been reverted. 46 // Sent prior to OnAutoCompleteAccept and before the model has been reverted.
47 virtual void OnAutocompleteWillAccept() = 0; 47 virtual void OnAutocompleteWillAccept() = 0;
48 48
49 // Commits the suggested text. |typed_text| is the current text showing in the 49 // Commits the suggested text. |typed_text| is the current text showing in the
50 // autocomplete. Returns true if the text was committed. 50 // autocomplete. Returns true if the text was committed.
51 virtual bool OnCommitSuggestedText(const std::wstring& typed_text) = 0; 51 virtual bool OnCommitSuggestedText(const std::wstring& typed_text) = 0;
52 52
53 // Accepts the currently showing instant preview, if any, and returns true. 53 // Accepts the currently showing instant preview, if any, and returns true.
54 // Returns false if there is no instant preview showing. 54 // Returns false if there is no instant preview showing.
55 virtual bool AcceptCurrentInstantPreview() { return false; } 55 virtual bool AcceptCurrentInstantPreview();
56 56
57 // Sets the suggested search text to |suggested_text|. 57 // Sets the suggested search text to |suggested_text|.
58 virtual void OnSetSuggestedSearchText(const string16& suggested_text) = 0; 58 virtual void OnSetSuggestedSearchText(const string16& suggested_text) = 0;
59 59
60 // Invoked when the popup is going to change its bounds to |bounds|. 60 // Invoked when the popup is going to change its bounds to |bounds|.
61 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds) = 0; 61 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds) = 0;
62 62
63 // When the user presses enter or selects a line with the mouse, this 63 // When the user presses enter or selects a line with the mouse, this
64 // function will get called synchronously with the url to open and 64 // function will get called synchronously with the url to open and
65 // disposition and transition to use when opening it. 65 // disposition and transition to use when opening it.
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 mutable GURL paste_and_go_url_; 494 mutable GURL paste_and_go_url_;
495 mutable PageTransition::Type paste_and_go_transition_; 495 mutable PageTransition::Type paste_and_go_transition_;
496 mutable GURL paste_and_go_alternate_nav_url_; 496 mutable GURL paste_and_go_alternate_nav_url_;
497 497
498 Profile* profile_; 498 Profile* profile_;
499 499
500 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 500 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
501 }; 501 };
502 502
503 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 503 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « app/tree_model.cc ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698