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

Issue 10391101: Test for Pepper IME events. (Closed)

Created:
8 years, 7 months ago by kinaba
Modified:
8 years, 7 months ago
Reviewers:
brettw, yzshen1, kochi
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Test for Pepper IME events. This patch adds a way to simulate IME composition events inside the renderer process, and tests that IME events are properly passed between the renderer and plugins. ppapi/tests/test_ime_input_event.cc: is the actual test case ppapi/{api,c,cpp}/dev/*ime_input_event_dev*: implements an API to create IME events from plugins for testing. other files: wire necessary stuff for simulating IME events. Since Pepper IME events are not delivered through WebKit/DOM layer but rather directly sent from renderer to plugins, the simulation part also follows the similar code path. BUG=126714 TEST=browser_tests PPAPITest.ImeInputEvent Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138080

Patch Set 1 : . #

Total comments: 37

Patch Set 2 : Review 1. #

Patch Set 3 : Merge trunk. #

Patch Set 4 : Merge trunk #

Total comments: 18

Patch Set 5 : Addressed comments from kochi & merge master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1108 lines, -131 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M ppapi/api/dev/ppb_ime_input_event_dev.idl View 1 1 chunk +50 lines, -2 lines 0 comments Download
M ppapi/c/dev/ppb_ime_input_event_dev.h View 1 3 chunks +62 lines, -4 lines 0 comments Download
M ppapi/cpp/dev/ime_input_event_dev.h View 2 chunks +29 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/ime_input_event_dev.cc View 2 chunks +82 lines, -28 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 4 chunks +24 lines, -47 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.cc View 1 1 chunk +118 lines, -0 lines 0 comments Download
A ppapi/tests/test_ime_input_event.h View 1 1 chunk +60 lines, -0 lines 0 comments Download
A ppapi/tests/test_ime_input_event.cc View 1 2 3 4 1 chunk +425 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_input_event_thunk.cc View 1 3 chunks +36 lines, -2 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 2 chunks +50 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 chunk +9 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 4 chunks +24 lines, -48 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kinaba
Sorry for taking long time for coming back to this, but I somehow implemented the ...
8 years, 7 months ago (2012-05-14 08:51:41 UTC) #1
yzshen1
Only nits. http://codereview.chromium.org/10391101/diff/11001/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/10391101/diff/11001/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode436 content/renderer/pepper/pepper_plugin_delegate_impl.cc:436: if (render_view_) nit: {} for multiple-line body. ...
8 years, 7 months ago (2012-05-15 18:03:47 UTC) #2
brettw
I'll defer my review to Yuzhu. LGTM to make owners checks happy.
8 years, 7 months ago (2012-05-15 19:33:12 UTC) #3
brettw
BTW thanks for following up with this!
8 years, 7 months ago (2012-05-15 19:33:32 UTC) #4
kinaba
Thanks for the comments. https://chromiumcodereview.appspot.com/10391101/diff/11001/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): https://chromiumcodereview.appspot.com/10391101/diff/11001/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode436 content/renderer/pepper/pepper_plugin_delegate_impl.cc:436: if (render_view_) On 2012/05/15 18:03:48, ...
8 years, 7 months ago (2012-05-16 10:13:57 UTC) #5
yzshen1
LGTM http://codereview.chromium.org/10391101/diff/11001/webkit/plugins/ppapi/resource_creation_impl.cc File webkit/plugins/ppapi/resource_creation_impl.cc (right): http://codereview.chromium.org/10391101/diff/11001/webkit/plugins/ppapi/resource_creation_impl.cc#newcode195 webkit/plugins/ppapi/resource_creation_impl.cc:195: if (type != PP_INPUTEVENT_TYPE_IME_COMPOSITION_START && I don't know ...
8 years, 7 months ago (2012-05-16 20:33:28 UTC) #6
kochi
LGTM with nits Thanks for working on this and sorry for the review delay. This ...
8 years, 7 months ago (2012-05-18 10:18:50 UTC) #7
kinaba
Done. http://codereview.chromium.org/10391101/diff/16006/ppapi/tests/test_ime_input_event.cc File ppapi/tests/test_ime_input_event.cc (right): http://codereview.chromium.org/10391101/diff/16006/ppapi/tests/test_ime_input_event.cc#newcode21 ppapi/tests/test_ime_input_event.cc:21: const char *(kCompositionChar[]) = { On 2012/05/18 10:18:50, ...
8 years, 7 months ago (2012-05-21 02:40:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/10391101/19001
8 years, 7 months ago (2012-05-21 04:42:10 UTC) #9
commit-bot: I haz the power
Try job failure for 10391101-19001 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-21 05:20:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/10391101/19001
8 years, 7 months ago (2012-05-21 05:40:40 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-21 07:09:34 UTC) #12
Change committed as 138080

Powered by Google App Engine
This is Rietveld 408576698