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

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. 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/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 2a3d2c4ca97d9d74e972ce491734acf6cf8baaa4..9f1e82c294ade030a4037d2e2cc4fc7b7da628c7 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -45,6 +45,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())
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698