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

Unified Diff: content/browser/renderer_host/render_widget_host_view_event_handler.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_view_event_handler.h
diff --git a/content/browser/renderer_host/render_widget_host_view_event_handler.h b/content/browser/renderer_host/render_widget_host_view_event_handler.h
index 7a049eb8cca9a072ad7bcc6fc87e9f1635d67cb3..b96f3bc2eff6ce6ff7c60a8dcbf70dd81601a57d 100644
--- a/content/browser/renderer_host/render_widget_host_view_event_handler.h
+++ b/content/browser/renderer_host/render_widget_host_view_event_handler.h
@@ -59,8 +59,11 @@ class CONTENT_EXPORT RenderWidgetHostViewEventHandler
// Converts |rect| from window coordinate to screen coordinate.
virtual gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const = 0;
// Call keybindings handler against the event and send matched edit commands
- // to the renderer instead.
- virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event) = 0;
+ // to the renderer instead. |update_event| (if non-null) is set to indicate
+ // whether ui::KeyEvent::SetHandled() should be called on the underlying
+ // ui::KeyEvent.
+ virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event,
+ bool* update_event) = 0;
// Returns whether the widget needs to grab mouse capture to work properly.
virtual bool NeedsMouseCapture() = 0;
virtual void SetTooltipsEnabled(bool enable) = 0;

Powered by Google App Engine
This is Rietveld 408576698