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

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: add TODO 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5cc1300dd9178369a6ade510792cf69e7a8e486a..2d242a941ba60ce51d9007bb4cf406f37863c062 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -338,6 +338,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(
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698