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

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

Issue 11779035: Centralize keypress listener handling in non-platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 7549ac2d3fa9199a5ee27dc8c476a1a0c73cefc9..1d8e4df33a79cf06617aa9676fd2c9bce1fb0a18 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -247,10 +247,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void ForwardGestureEventImmediately(
const WebKit::WebGestureEvent& gesture_event);
- // Give key press listeners a chance to handle this key press. This allow
- // widgets that don't have focus to still handle key presses.
- bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
-
void CancelUpdateTextDirection();
// Called when a mouse click/gesture tap activates the renderer.
@@ -644,6 +640,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
const gfx::Rect& clip_rect,
const gfx::Size& view_size);
+ // Give key press listeners a chance to handle this key press. This allow
+ // widgets that don't have focus to still handle key presses.
+ bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
+
// Called by OnInputEventAck() to process a keyboard event ack message.
void ProcessKeyboardEventAck(int type, bool processed);

Powered by Google App Engine
This is Rietveld 408576698