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

Issue 11490017: Sync Ime and Keyboard events. (Closed)

Created:
8 years ago by aurimas (slooooooooow)
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Sync Ime and Keyboard events. Adding code to sync ime and keyboard events to make sure they arrive to renderer in correct order. Ime events will be queued in the input_event_filter if the message_ queue is not empty (Compositor is handling those events). If the queue is empty, then the message will not be accepted and just forwared directly to renderer. BUG=164470 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172287

Patch Set 1 #

Patch Set 2 : Removing useless new line #

Total comments: 4

Patch Set 3 : Moving forwardPendingImeEvents() call #

Total comments: 12

Patch Set 4 : Fixes based on jamesr's comments #

Patch Set 5 : Adding isEmpty() check in ForwardPendingImeEvents() #

Patch Set 6 : Moving IsImeEvent() to the top of the file before it is used #

Total comments: 1

Patch Set 7 : Fixing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M content/renderer/gpu/input_event_filter.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/gpu/input_event_filter.cc View 1 2 3 4 5 6 5 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
aurimas (slooooooooow)
8 years ago (2012-12-10 22:27:50 UTC) #1
aurimas (slooooooooow)
Hello Min, Could you take a look at this CL please? Thanks, Aurimas
8 years ago (2012-12-10 23:20:17 UTC) #2
aurimas (slooooooooow)
Hello James, I have created a CL for syncing Ime and Keyboard events on InputEventFilter ...
8 years ago (2012-12-10 23:39:55 UTC) #3
aurimas (slooooooooow)
Hello James (Zhe), Could you take a look at this CL? Aurimas
8 years ago (2012-12-11 02:08:10 UTC) #4
James Su
https://codereview.chromium.org/11490017/diff/2001/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/2001/content/renderer/gpu/input_event_filter.cc#newcode49 content/renderer/gpu/input_event_filter.cc:49: forwardPendingImeEvents(); Should pending ime events be forwarded after forwarding ...
8 years ago (2012-12-11 02:54:49 UTC) #5
aurimas (slooooooooow)
See comments below. https://codereview.chromium.org/11490017/diff/2001/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/2001/content/renderer/gpu/input_event_filter.cc#newcode49 content/renderer/gpu/input_event_filter.cc:49: forwardPendingImeEvents(); On 2012/12/11 02:54:50, James Su ...
8 years ago (2012-12-11 03:41:22 UTC) #6
jamesr
https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc#newcode170 content/renderer/gpu/input_event_filter.cc:170: return false; indent by 2 spaces https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.h File content/renderer/gpu/input_event_filter.h ...
8 years ago (2012-12-11 03:48:48 UTC) #7
jamesr
https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc#newcode176 content/renderer/gpu/input_event_filter.cc:176: while (isImeEvent(messages_.front())) { you're calling stl::queue::front() without verifying that ...
8 years ago (2012-12-11 03:54:07 UTC) #8
James Su
https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc#newcode176 content/renderer/gpu/input_event_filter.cc:176: while (isImeEvent(messages_.front())) { I think we should check if ...
8 years ago (2012-12-11 03:57:04 UTC) #9
aurimas (slooooooooow)
Addressed all the comments. https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/9006/content/renderer/gpu/input_event_filter.cc#newcode170 content/renderer/gpu/input_event_filter.cc:170: return false; On 2012/12/11 03:48:49, ...
8 years ago (2012-12-11 04:07:25 UTC) #10
jamesr
Inline diffs appear to be broken on this upload - put IsImeEvent in an anonymous ...
8 years ago (2012-12-11 04:25:43 UTC) #11
James Su
LGTM. Weird that side-by-side diffs are empty, but unified diffs are ok.
8 years ago (2012-12-11 04:26:41 UTC) #12
qinmin
lgtm with one nit https://codereview.chromium.org/11490017/diff/8004/content/renderer/gpu/input_event_filter.cc File content/renderer/gpu/input_event_filter.cc (right): https://codereview.chromium.org/11490017/diff/8004/content/renderer/gpu/input_event_filter.cc#newcode16 content/renderer/gpu/input_event_filter.cc:16: does this belongs to content ...
8 years ago (2012-12-11 05:15:48 UTC) #13
aurimas (slooooooooow)
Fixed the nits.
8 years ago (2012-12-11 05:50:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/11490017/8
8 years ago (2012-12-11 05:50:47 UTC) #15
commit-bot: I haz the power
8 years ago (2012-12-11 09:54:04 UTC) #16
Message was sent while issue was closed.
Change committed as 172287

Powered by Google App Engine
This is Rietveld 408576698