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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 6685002: Wires up ability for page to specify instant auto complete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test and stray char Created 9 years, 9 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/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index a5e673a9a970d3907e8c2dc2a74f7f7b9789e1b6..ac8c2c3c3b745a8bc8972f12ce0d64c6d0674872 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -152,8 +152,14 @@ class LocationBarView : public LocationBar,
// appears, not where the icons are shown).
gfx::Point GetLocationEntryOrigin() const;
+#if defined(OS_WIN)
+ // Invoked from AutocompleteEditViewWin to show the instant suggestion.
+ void SetInstantSuggestion(const string16& text,
+ bool animate_to_complete);
+
// Returns the current instant suggestion text.
string16 GetInstantSuggestion() const;
+#endif
// Sizing functions
virtual gfx::Size GetPreferredSize() OVERRIDE;
@@ -223,7 +229,8 @@ class LocationBarView : public LocationBar,
// Overridden from LocationBar:
virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type) OVERRIDE;
- virtual void SetSuggestedText(const string16& text) OVERRIDE;
+ virtual void SetSuggestedText(const string16& text,
+ InstantCompleteBehavior behavior) OVERRIDE;
virtual std::wstring GetInputString() const OVERRIDE;
virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE;
virtual PageTransition::Type GetPageTransition() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698