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

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

Issue 2775553002: Adds the ability for WebContentsDelegate to decide if event should be updated (Closed)
Patch Set: Fix compile Created 3 years, 9 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 2ecbba20480ba09e7725214639e86ade5af87500..e87231a5bcec625cd7f4812d26bcd6efe3a15d78 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -347,9 +347,13 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// Forwards the keyboard event with optional commands to the renderer. If
// |key_event| is not forwarded for any reason, then |commands| are ignored.
+ // |update_event| (if non-null) is set to indicate whether the underlying
+ // event in |key_event| should be updated. |update_event| is only used on
+ // aura.
void ForwardKeyboardEventWithCommands(
const NativeWebKeyboardEvent& key_event,
- const std::vector<EditCommand>* commands);
+ const std::vector<EditCommand>* commands,
+ bool* update_event = nullptr);
// Forwards the given message to the renderer. These are called by the view
// when it has received a message.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698