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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Added comment. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_loader.h ('k') | chrome/browser/instant/instant_tab.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 34fa5c0f0d600c5ed7764dfcd3ecdaa5af4ed9bc..6db80904534a8acdad3f0182ac1e32ab47fb1dfa 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -276,6 +276,17 @@ void InstantLoader::ShowInstantPreview(InstantShownReason reason,
controller_->ShowInstantPreview(reason, height, units);
}
+void InstantLoader::StartCapturingKeyStrokes() {
+ InstantSupportDetermined(true);
+ controller_->StartCapturingKeyStrokes();
+}
+
+void InstantLoader::StopCapturingKeyStrokes() {
+ InstantSupportDetermined(true);
+ // NOTE(samarth): the current implementation of the key capturing (invisible
+ // focus) doesn't require doing anything explicitly here.
+}
+
void InstantLoader::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
« no previous file with comments | « chrome/browser/instant/instant_loader.h ('k') | chrome/browser/instant/instant_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698