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

Issue 103403006: Implement Input Method related WebPlugin interface for browser plugin (Closed)

Created:
7 years ago by kochi
Modified:
7 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org, yosin_UTC9
Visibility:
Public.

Description

Implement Input Method related WebPlugin interface for browser plugin This implements input method-related interfaces defined in WebPlugin https://codereview.chromium.org/102963005 to enable minimum support of IME for brower plugin (e.g. <webview> for Chrome apps). BUG=235573 TEST=content_browsertests --gtest_filter=BrowserPluginHostTest.InputMethod Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240836

Patch Set 1 #

Patch Set 2 : add cancel/compositionrangechanged #

Total comments: 10

Patch Set 3 : rebase #

Patch Set 4 : fsamuel's review fix #

Total comments: 2

Patch Set 5 : minor fix (check rwhv and return early) #

Total comments: 2

Patch Set 6 : call RWHVGuest directly instead of extending RWHVImpl #

Patch Set 7 : check rwhv == NULL #

Patch Set 8 : add a browsertest #

Patch Set 9 : SelectionChanged #

Patch Set 10 : fix browsertest. #

Patch Set 11 : rebase #

Patch Set 12 : Add ExtendSelectionAndDelete support. #

Patch Set 13 : Add browser_unittest. #

Patch Set 14 : alphabetical order. #

Patch Set 15 : Translate coordinates of parameter for ImeCompositionRangeChanged #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -8 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +28 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +69 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +112 lines, -1 line 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +37 lines, -6 lines 1 comment Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +25 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
kochi
Hi reviewers, This is the chromium part of enabling Input Methods for browser_plugin (e.g. <webview>). ...
7 years ago (2013-12-10 08:30:08 UTC) #1
Fady Samuel
https://codereview.chromium.org/103403006/diff/30001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/103403006/diff/30001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode514 content/browser/browser_plugin/browser_plugin_guest.cc:514: IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeConfirmComposition, Alphabetical order. https://codereview.chromium.org/103403006/diff/30001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode516 content/browser/browser_plugin/browser_plugin_guest.cc:516: IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeSetComposition, Alphabetical order. https://codereview.chromium.org/103403006/diff/30001/content/browser/renderer_host/render_widget_host_view_guest.cc ...
7 years ago (2013-12-10 17:55:32 UTC) #2
kochi
will add a browsertest. https://codereview.chromium.org/103403006/diff/30001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/103403006/diff/30001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode514 content/browser/browser_plugin/browser_plugin_guest.cc:514: IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeConfirmComposition, On 2013/12/10 17:55:32, Fady ...
7 years ago (2013-12-11 01:35:20 UTC) #3
Fady Samuel
Will lg tm when you add a browser test. Thanks! https://codereview.chromium.org/103403006/diff/70001/content/browser/renderer_host/render_widget_host_view_guest.cc File content/browser/renderer_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/103403006/diff/70001/content/browser/renderer_host/render_widget_host_view_guest.cc#newcode339 ...
7 years ago (2013-12-11 01:38:06 UTC) #4
kochi
I'll work on adding a browser test today, and ask you another review. Thanks! https://codereview.chromium.org/103403006/diff/70001/content/browser/renderer_host/render_widget_host_view_guest.cc ...
7 years ago (2013-12-11 04:05:06 UTC) #5
sadrul
https://codereview.chromium.org/103403006/diff/80001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/103403006/diff/80001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode1788 content/browser/browser_plugin/browser_plugin_guest.cc:1788: render_widget_host->ChangeTextInputType(type, input_mode, can_compose_inline); If I am following the code ...
7 years ago (2013-12-11 07:00:59 UTC) #6
kochi
Thanks for the review! https://codereview.chromium.org/103403006/diff/80001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/103403006/diff/80001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode1788 content/browser/browser_plugin/browser_plugin_guest.cc:1788: render_widget_host->ChangeTextInputType(type, input_mode, can_compose_inline); On 2013/12/11 ...
7 years ago (2013-12-11 08:32:11 UTC) #7
sadrul
cool. The change in RenderWidgetHostViewGuest looks reasonable to me. I will stamp after reviews from ...
7 years ago (2013-12-11 08:35:09 UTC) #8
kochi
On 2013/12/11 08:35:09, sadrul wrote: > cool. The change in RenderWidgetHostViewGuest looks reasonable to me. ...
7 years ago (2013-12-11 08:57:01 UTC) #9
kochi
Hi Fady, I added a browsertest, which fails yet. I must be misunderstanding the layering ...
7 years ago (2013-12-11 11:19:09 UTC) #10
Seigo Nonaka
Following IPCs are used in Desktop IME implementation. ViewHostMsg_ImeCancelComposition ViewHostMsg_SelectionChanged, ViewHostMsg_SelectionBoundsChanged, ViewHostMsg_TextInputTypeChanged ViewMsg_ImeSetComposition, ViewMsg_ImeConfirmComposition, ViewMsg_SetInputMethodActive, ...
7 years ago (2013-12-12 04:19:55 UTC) #11
kochi
Thanks for the information. On 2013/12/12 04:19:55, Seigo Nonaka wrote: > Following IPCs are used ...
7 years ago (2013-12-12 05:27:46 UTC) #12
kochi
On 2013/12/11 11:19:09, Takayoshi Kochi wrote: > Hi Fady, > > I added a browsertest, ...
7 years ago (2013-12-12 07:33:47 UTC) #13
Seigo Nonaka
Sorry I forgot one thing. ViewMsg_ExtendSelectionAndDelete should be also supported which is probably used by ...
7 years ago (2013-12-12 09:00:50 UTC) #14
kochi
On 2013/12/12 09:00:50, Seigo Nonaka wrote: > Sorry I forgot one thing. > > ViewMsg_ExtendSelectionAndDelete ...
7 years ago (2013-12-12 09:58:19 UTC) #15
Fady Samuel
browser_plugin lgtm
7 years ago (2013-12-12 16:53:02 UTC) #16
kochi
On 2013/12/12 16:53:02, Fady Samuel wrote: > browser_plugin lgtm Thanks, nona-san, could you take another ...
7 years ago (2013-12-13 01:19:44 UTC) #17
kochi
In case Chris is not available, added cdn@ for reviewing browser_plugin_messages.h.
7 years ago (2013-12-13 01:21:36 UTC) #18
Seigo Nonaka
lgtm
7 years ago (2013-12-13 03:08:58 UTC) #19
sadrul
lgtm
7 years ago (2013-12-13 03:10:27 UTC) #20
kochi
Adding more reviewers for browser_plugin_messages.h. Can anyone take a look? Added 3 messages are basically ...
7 years ago (2013-12-13 03:42:44 UTC) #21
kochi
https://codereview.chromium.org/103403006/diff/290001/content/browser/renderer_host/render_widget_host_view_guest.cc File content/browser/renderer_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/103403006/diff/290001/content/browser/renderer_host/render_widget_host_view_guest.cc#newcode333 content/browser/renderer_host/render_widget_host_view_guest.cc:333: } Self-review: This part was missing. As in SelectionBoundsChanged() ...
7 years ago (2013-12-13 06:41:23 UTC) #22
kochi
Fady, could you review the bit I changed between patchset 14 and 15? Thanks, and ...
7 years ago (2013-12-13 06:47:57 UTC) #23
Tom Sepez
browser_plugin_messages.h LGTM
7 years ago (2013-12-13 18:25:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/103403006/290001
7 years ago (2013-12-13 22:47:28 UTC) #25
Fady Samuel
lgtm patch set 15.
7 years ago (2013-12-13 22:49:30 UTC) #26
commit-bot: I haz the power
7 years ago (2013-12-14 01:31:38 UTC) #27
Message was sent while issue was closed.
Change committed as 240836

Powered by Google App Engine
This is Rietveld 408576698