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

Issue 1391843006: Embed keyboard shortcut bit in WebKeyboardEvent (Closed)

Created:
5 years, 2 months ago by jdduke (slow)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, blink-reviews, dglazkov+blink, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, jdduke+watch_chromium.org, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Embed keyboard shortcut bit in WebKeyboardEvent Before a WebKeyboardEvent is forwarded to the renderer, the content embedder can tag it as a keyboard shortcut. This shortcut bit is passed along with the input event to the renderer, allowing the renderer to suppress follow-up Char events for unhandled RawKeyDown events that are part of a keyboard shortcut. However, passing around this keyboard shortcut bit separately is awkward and pollutes a number of input-related methods. Instead, just embed the shortcut bit directly in the WebKeyboardEvent. BUG=302492 Committed: https://crrev.com/0cf1e6644924c89bc2fcb288f45e59cf2612c63c Cr-Commit-Position: refs/heads/master@{#354384}

Patch Set 1 #

Patch Set 2 : Test #

Total comments: 7

Patch Set 3 : Code review #

Patch Set 4 : Fix mac test compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -133 lines) Patch
M content/browser/renderer_host/input/input_router.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 3 chunks +5 lines, -12 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 7 chunks +13 lines, -19 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 6 chunks +7 lines, -25 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 8 chunks +80 lines, -23 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/input/input_event.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/common/input/input_event.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M content/common/input_messages.h View 2 chunks +2 lines, -4 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 4 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/idle_user_detector.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/idle_user_detector.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 3 chunks +6 lines, -11 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebInputEvent.h View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
jdduke (slow)
tdresser@: Thoughts? Was working on some other stuff and realized this has always bothered me.
5 years, 2 months ago (2015-10-09 21:29:55 UTC) #2
jdduke (slow)
https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1148 content/browser/renderer_host/render_widget_host_impl.cc:1148: key_event_with_latency.event.isBrowserShortcut = is_shortcut; This is the critical change, the ...
5 years, 2 months ago (2015-10-09 21:30:26 UTC) #3
tdresser
LGTM! https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode914 content/browser/renderer_host/render_widget_host_unittest.cc:914: // Simluate the situation that the browser handled ...
5 years, 2 months ago (2015-10-13 13:19:48 UTC) #4
jdduke (slow)
+sievers for content/ rubberstamp. +rbyers for WebKit/public. https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://chromiumcodereview.appspot.com/1391843006/diff/20001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode914 content/browser/renderer_host/render_widget_host_unittest.cc:914: // Simluate ...
5 years, 2 months ago (2015-10-13 16:13:03 UTC) #6
no sievers
lgtm
5 years, 2 months ago (2015-10-13 18:41:27 UTC) #7
jdduke (slow)
+tsepez for (trivial) content/common/input_messages.h changes.
5 years, 2 months ago (2015-10-13 18:45:19 UTC) #9
Tom Sepez
Trivial LGTM.
5 years, 2 months ago (2015-10-13 19:14:48 UTC) #10
jdduke (slow)
On 2015/10/13 16:13:03, jdduke wrote: > +rbyers for WebKit/public. Rick, anything else you'd like to ...
5 years, 2 months ago (2015-10-15 14:57:23 UTC) #11
Rick Byers
On 2015/10/15 14:57:23, jdduke wrote: > On 2015/10/13 16:13:03, jdduke wrote: > > +rbyers for ...
5 years, 2 months ago (2015-10-15 21:22:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391843006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391843006/60001
5 years, 2 months ago (2015-10-15 21:26:25 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-15 22:43:36 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 22:44:28 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0cf1e6644924c89bc2fcb288f45e59cf2612c63c
Cr-Commit-Position: refs/heads/master@{#354384}

Powered by Google App Engine
This is Rietveld 408576698