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

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. 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
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..b994e29ec94f134c83a369c27c5c4f1628158821 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -276,6 +276,16 @@ void InstantLoader::ShowInstantPreview(InstantShownReason reason,
controller_->ShowInstantPreview(reason, height, units);
}
+void InstantLoader::StartCapturingKeyStrokes() {
+ InstantSupportDetermined(true);
+ controller_->StartCapturingKeyStrokes(contents());
+}
+
+void InstantLoader::StopCapturingKeyStrokes() {
+ InstantSupportDetermined(true);
+ // NOTE(samarth): we don't do anything else yet in this case.
sreeram 2012/12/04 21:54:58 Should this be a "TODO(samarth): Do something" ins
samarth 2012/12/04 22:13:43 Expanded the comment.
+}
+
void InstantLoader::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {

Powered by Google App Engine
This is Rietveld 408576698