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

Issue 11779035: Centralize keypress listener handling in non-platform-specific code. (Closed)

Created:
7 years, 11 months ago by Ilya Sherman
Modified:
7 years, 11 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Centralize keypress listener handling in non-platform-specific code. This moves the GTK- and Views-specific code for alerting RenderWidgetHostView keypress listeners of keypress events into the shared method RenderWidgetHostImpl::ForwardKeyboardEvent() that all implementations bottleneck through. Also updates RenderWidgetHostImpl::KeyPressListenersHandleEvent() to ignore events with the skip_in_browser flag set. BUG=51644 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175691

Patch Set 1 #

Total comments: 2

Patch Set 2 : Keep ignoring input events #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -31 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 3 chunks +19 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 chunk +3 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ilya Sherman
Evan, can you sanity-check this before I send it out to a content/ OWNER? Is ...
7 years, 11 months ago (2013-01-08 02:11:05 UTC) #1
Evan Stade
seems fine https://chromiumcodereview.appspot.com/11779035/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/11779035/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode1036 content/browser/renderer_host/render_widget_host_impl.cc:1036: if (KeyPressListenersHandleEvent(key_event)) should this come after the ...
7 years, 11 months ago (2013-01-08 20:54:56 UTC) #2
Ilya Sherman
https://chromiumcodereview.appspot.com/11779035/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/11779035/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode1036 content/browser/renderer_host/render_widget_host_impl.cc:1036: if (KeyPressListenersHandleEvent(key_event)) On 2013/01/08 20:54:56, Evan Stade wrote: > ...
7 years, 11 months ago (2013-01-08 21:01:45 UTC) #3
Ilya Sherman
Scott, PTAL
7 years, 11 months ago (2013-01-08 21:02:59 UTC) #4
sky
LGTM
7 years, 11 months ago (2013-01-08 21:32:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/11779035/1005
7 years, 11 months ago (2013-01-08 21:35:10 UTC) #6
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 03:25:00 UTC) #7
Message was sent while issue was closed.
Change committed as 175691

Powered by Google App Engine
This is Rietveld 408576698