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

Unified Diff: chrome/browser/instant/instant_controller.h

Issue 6990015: Preload Instant search when omnibox is focused. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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/instant/instant_controller.h
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index 0352dfe4045cf41103c6d5d6d9f1f669ae84c0e9..f288376cd2e2ab21bdc2aafd5914c5b308e351f2 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -121,6 +121,10 @@ class InstantController : public InstantLoaderDelegate {
// lost focus. Commit or discard the preview accordingly.
void OnAutocompleteLostFocus(gfx::NativeView view_gaining_focus);
+ // The autocomplete edit has gained focus. Preload the instant URL of the
+ // default search engine, in anticipation of the user typing a query.
+ void OnAutocompleteGotFocus(TabContentsWrapper* tab_contents);
+
// Releases the preview TabContents passing ownership to the caller. This is
// intended to be called when the preview TabContents is committed. This does
// not notify the delegate.

Powered by Google App Engine
This is Rietveld 408576698