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

Issue 8073021: Implement Pepper IME API. (Closed)

Created:
9 years, 2 months ago by kinaba
Modified:
9 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke+watch-content_chromium.org, jam
Visibility:
Public.

Description

Implement Pepper IME API. BUG=59425 TEST=Build chrome and ppapi_example_ime, Confirm "out/Release/chrome --register-pepper-plugins='out/Release/lib/libppapi_example_ime.so;application/x-ppapi-example' ppapi/examples/ime/ime.html" works. This CL is the last part for adding the basic IME support for PPAPI, preceded by the previous two changes codereview.chromium.org/7882004 (API declarations) and codereview.chromium.org/7978019 (thunk and proxy implementation). This CL comes with the actual Chrome-side implementation of the API with an example to show how to use IME in PPAPI. Keep in mind the current implementation still not reached the point of "the complete" set of IME APIs yet. - Advanced features in design doc (like surrounding text retrieval) is not available. - DOM and PPAPI composition events are not converted each other. Rather, it aims to provide basic set of functions just needed to implement inline composition in plugins. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105056

Patch Set 1 #

Patch Set 2 : Fix build dependency. #

Total comments: 44

Patch Set 3 : Incorporated comments from brettw, yzshen, and kochi. #

Total comments: 2

Patch Set 4 : Merged the trunk (in particular, r103869) #

Patch Set 5 : Changed the names of UTF8 functions in the example. #

Patch Set 6 : Merge trunk. #

Total comments: 5

Patch Set 7 : Reflected James's comments. Merget trunk (especially RenderView -> RenderViewImpl move). #

Patch Set 8 : Merge trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1069 lines, -76 lines) Patch
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 5 chunks +26 lines, -3 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 3 chunks +102 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -41 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
A ppapi/examples/ime/ime.cc View 1 2 3 4 1 chunk +609 lines, -0 lines 0 comments Download
A ppapi/examples/ime/ime.html View 1 1 chunk +31 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 6 chunks +41 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 6 chunks +163 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_text_input_impl.cc View 1 2 2 chunks +21 lines, -15 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kinaba
Hi, I would like you to review the patch. Thank you all in advance! Takayoshi, ...
9 years, 2 months ago (2011-09-30 11:56:24 UTC) #1
James Su
Hi, I'm currently on vacation until Oct 10. Will review your CL asap. Best Regards ...
9 years, 2 months ago (2011-09-30 12:56:19 UTC) #2
brettw
LGTM, mostly style nits. http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.cc#newcode932 content/renderer/pepper_plugin_delegate_impl.cc:932: return gfx::Rect(0,0,0,0); Can you put ...
9 years, 2 months ago (2011-10-03 16:46:00 UTC) #3
yzshen1
http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.cc#newcode668 content/renderer/pepper_plugin_delegate_impl.cc:668: focused_plugin_(0), Please use NULL. http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.cc#newcode857 content/renderer/pepper_plugin_delegate_impl.cc:857: focused_plugin_ = 0; ...
9 years, 2 months ago (2011-10-03 18:28:09 UTC) #4
kochi
http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.h File content/renderer/pepper_plugin_delegate_impl.h (right): http://codereview.chromium.org/8073021/diff/5002/content/renderer/pepper_plugin_delegate_impl.h#newcode48 content/renderer/pepper_plugin_delegate_impl.h:48: struct WebCompositionUnderline; Move after 'class WebMouseEvent;' line. http://codereview.chromium.org/8073021/diff/5002/ppapi/examples/ime/ime.cc File ...
9 years, 2 months ago (2011-10-04 08:52:45 UTC) #5
kinaba
I hope I addressed the issues commented so far. Thank you for nice suggestions (and ...
9 years, 2 months ago (2011-10-05 04:43:19 UTC) #6
yzshen1
LGTM Thanks! http://codereview.chromium.org/8073021/diff/18018/ppapi/examples/ime/ime.cc File ppapi/examples/ime/ime.cc (right): http://codereview.chromium.org/8073021/diff/18018/ppapi/examples/ime/ime.cc#newcode51 ppapi/examples/ime/ime.cc:51: size_t Utf8Prev(const std::string& str, size_t i) { ...
9 years, 2 months ago (2011-10-05 17:19:50 UTC) #7
kinaba
Updated. http://codereview.chromium.org/8073021/diff/18018/ppapi/examples/ime/ime.cc File ppapi/examples/ime/ime.cc (right): http://codereview.chromium.org/8073021/diff/18018/ppapi/examples/ime/ime.cc#newcode51 ppapi/examples/ime/ime.cc:51: size_t Utf8Prev(const std::string& str, size_t i) { On ...
9 years, 2 months ago (2011-10-06 07:05:00 UTC) #8
kochi
LGTM On 2011/10/06 07:05:00, kinaba wrote: > Updated. > > http://codereview.chromium.org/8073021/diff/18018/ppapi/examples/ime/ime.cc > File ppapi/examples/ime/ime.cc (right): ...
9 years, 2 months ago (2011-10-07 08:51:04 UTC) #9
James Su
LGTM with some nits. http://codereview.chromium.org/8073021/diff/28002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/8073021/diff/28002/content/renderer/pepper_plugin_delegate_impl.cc#newcode905 content/renderer/pepper_plugin_delegate_impl.cc:905: composition_text_ = text; Looks like ...
9 years, 2 months ago (2011-10-11 04:13:03 UTC) #10
kinaba
Thank you! I updated and replied the comments. http://codereview.chromium.org/8073021/diff/28002/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/8073021/diff/28002/content/renderer/pepper_plugin_delegate_impl.cc#newcode905 content/renderer/pepper_plugin_delegate_impl.cc:905: composition_text_ ...
9 years, 2 months ago (2011-10-11 09:12:21 UTC) #11
kinaba
Bono-san, Could you kindly take a look and comment? Thank you so much!
9 years, 2 months ago (2011-10-11 09:45:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/8073021/52001
9 years, 2 months ago (2011-10-12 10:13:59 UTC) #13
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 11:38:33 UTC) #14
Change committed as 105056

Powered by Google App Engine
This is Rietveld 408576698