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

Unified Diff: chrome/browser/renderer_host/render_widget_host.h

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 3 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: chrome/browser/renderer_host/render_widget_host.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host.h (revision 27783)
+++ chrome/browser/renderer_host/render_widget_host.h (working copy)
@@ -357,6 +357,12 @@
// This is used for various IPC messages, including plugins.
gfx::NativeViewId GetNativeViewId();
+ // Called when an InputEvent is received to check if the event should be sent
+ // to the renderer or not.
+ virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event) {
+ return true;
+ }
+
// Called when we an InputEvent was not processed by the renderer. This is
// overridden by RenderView to send upwards to its delegate.
virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}

Powered by Google App Engine
This is Rietveld 408576698