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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.h

Issue 10732002: Upstream rewrite of Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace id with instant_url. Created 8 years, 5 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/omnibox/omnibox_edit_model.h
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.h b/chrome/browser/ui/omnibox/omnibox_edit_model.h
index f990b3e84917ae31b5aac454424cb659dc0b6290..af7afd173037b1bd05f4dd9f02b45f025ac7bdc1 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
@@ -215,7 +215,7 @@ class OmniboxEditModel : public AutocompleteControllerDelegate {
void OnSetFocus(bool control_down);
// Sent before |OnKillFocus| and before the popup is closed.
- void OnWillKillFocus(gfx::NativeView view_gaining_focus);
+ void OnWillKillFocus();
// Called when the view is losing focus. Resets some state.
void OnKillFocus();
@@ -373,9 +373,13 @@ class OmniboxEditModel : public AutocompleteControllerDelegate {
// Notifies the SearchTabHelper that autocomplete state has changed.
void NotifySearchTabHelper();
- // Tries to start an instant preview for |match|. Returns true if instant
- // processed the match.
- bool DoInstant(const AutocompleteMatch& match, string16* suggested_text);
+ // Tries to start an Instant preview for |match|. Returns true if Instant
+ // processed the match. |suggested_text| should initially contain the current
+ // inline autocomplete text. Instant will replace it to new suggested text
+ // and set |complete_behavior| accordingly.
+ bool DoInstant(const AutocompleteMatch& match,
+ string16* suggested_text,
+ InstantCompleteBehavior* complete_behavior);
// Starts a prerender for the given |match|.
void DoPrerender(const AutocompleteMatch& match);

Powered by Google App Engine
This is Rietveld 408576698