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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view.h

Issue 5966006: Hitting Tab should always move cursor to end of omnibox text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build. Created 9 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_edit_view.h
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view.h b/chrome/browser/autocomplete/autocomplete_edit_view.h
index 73ccb460dc2a90a732d9c81403c941efd20e4116..408c8489cbd509e86a146c9a8f1aab3de0ebb6fb 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view.h
@@ -161,6 +161,9 @@ class AutocompleteEditView {
// Shows the instant suggestion text.
virtual void SetInstantSuggestion(const string16& input) = 0;
+ // Returns the current instant suggestion text.
+ virtual string16 GetInstantSuggestion() const = 0;
+
// Returns the width in pixels needed to display the current text. The
// returned value includes margins.
virtual int TextWidth() const = 0;
@@ -172,10 +175,6 @@ class AutocompleteEditView {
// Adds the autocomplete edit view to view hierarchy and
// returns the views::View of the edit view.
virtual views::View* AddToView(views::View* parent) = 0;
-
- // Commits the suggested text.
- virtual bool CommitInstantSuggestion(const string16& typed_text,
- const string16& suggested_text) = 0;
#endif
virtual ~AutocompleteEditView() {}

Powered by Google App Engine
This is Rietveld 408576698