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

Unified Diff: chrome/renderer/searchbox/searchbox.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, 1 month 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/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 1aba77a77a1516e98dd3e117469eb727ef7ca26f..114fa28f0641ec631fb096577fe9527dd1266eb0 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -44,6 +44,16 @@ void SearchBox::ShowInstantPreview(InstantShownReason reason,
height, units));
}
+void SearchBox::StartCapturingKeyStrokes() {
+ render_view()->Send(new ChromeViewHostMsg_StartCapturingKeyStrokes(
+ render_view()->GetRoutingID(), render_view()->GetPageId()));
+}
+
+void SearchBox::StopCapturingKeyStrokes() {
+ render_view()->Send(new ChromeViewHostMsg_StopCapturingKeyStrokes(
+ render_view()->GetRoutingID(), render_view()->GetPageId()));
+}
+
gfx::Rect SearchBox::GetRect() {
// Need to adjust for scale.
if (rect_.IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698