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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2644843004: Send keyboard-derived commands only if the key events are sent (Closed)
Patch Set: Send keyboard-derived commands only if the key events are sent Created 3 years, 11 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: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 1011c3510eed01517a4c9c52119e17c430649f5a..ccdf9a241d1ca492761a16a2f7b336982d79e5d6 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -339,6 +339,12 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// yet.
void OnFirstPaintAfterLoad();
+ // Forwards the keyboard event with optional commands to the renderer. If
+ // |key_event| is not forwarded for any reason, then |commands| are ignored.
+ void ForwardKeyboardEventWithCommands(
+ const NativeWebKeyboardEvent& key_event,
+ const std::vector<EditCommand>* commands);
+
// Forwards the given message to the renderer. These are called by the view
// when it has received a message.
void ForwardGestureEventWithLatencyInfo(

Powered by Google App Engine
This is Rietveld 408576698