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

Issue 7082034: Send IME events to windowless plug-ins (Chromium side) (Closed)

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

Description

Send IME events to windowless plug-ins (Chromium side) This change adds a new class WebPluginIMEWin that converts the platform-independent IME data sent from a renderer process (or WebKit) to the Win32 IME messages and send them to a plug-in. To allow the plug-in to retrieve the IME data with IMM32 function calls, this change also adds a patch to GetProcessAddress(). (Flash seems to retrieve the pointers to IMM32 function with this function.) This change also sends IME status retrieved from the plug-in to a browser process (via a renderer process). BUG=82507 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103869

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+789 lines, -3 lines) Patch
M content/common/plugin_messages.h View 1 2 3 4 5 6 2 chunks +21 lines, -0 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 2 chunks +25 lines, -0 lines 0 comments Download
M content/plugin/webplugin_proxy.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M content/plugin/webplugin_proxy.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/render_view.h View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 4 chunks +51 lines, -0 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.h View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 2 3 4 5 6 6 chunks +49 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl.h View 1 2 3 4 5 6 5 chunks +27 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_win.cc View 1 2 3 4 5 6 5 chunks +52 lines, -0 lines 0 comments Download
A webkit/plugins/npapi/webplugin_ime_win.h View 1 2 3 4 5 6 1 chunk +190 lines, -0 lines 0 comments Download
A webkit/plugins/npapi/webplugin_ime_win.cc View 1 2 3 4 5 6 1 chunk +323 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
cpu_(ooo_6.6-7.5)
You probably want to remove viettrungluu and brettw from the reviewers and add to this ...
9 years, 6 months ago (2011-06-10 18:35:32 UTC) #1
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/7082034/diff/14001/webkit/plugins/npapi/webplugin_ime_win.cc File webkit/plugins/npapi/webplugin_ime_win.cc (right): http://codereview.chromium.org/7082034/diff/14001/webkit/plugins/npapi/webplugin_ime_win.cc#newcode64 webkit/plugins/npapi/webplugin_ime_win.cc:64: I worry that Justin's new UIPI sandbox hardening has ...
9 years, 6 months ago (2011-06-10 18:38:06 UTC) #2
jschuh
http://codereview.chromium.org/7082034/diff/14001/webkit/plugins/npapi/webplugin_ime_win.cc File webkit/plugins/npapi/webplugin_ime_win.cc (right): http://codereview.chromium.org/7082034/diff/14001/webkit/plugins/npapi/webplugin_ime_win.cc#newcode64 webkit/plugins/npapi/webplugin_ime_win.cc:64: On 2011/06/10 18:38:06, cpu wrote: > I worry that ...
9 years, 6 months ago (2011-06-11 17:31:50 UTC) #3
Hironori Bono
Greetings Carlos and Justin, Thank you for your review and comments. Even though I'm not ...
9 years, 6 months ago (2011-06-13 09:51:09 UTC) #4
brettw
http://codereview.chromium.org/7082034/diff/14001/content/renderer/webplugin_delegate_proxy.cc File content/renderer/webplugin_delegate_proxy.cc (right): http://codereview.chromium.org/7082034/diff/14001/content/renderer/webplugin_delegate_proxy.cc#newcode1063 content/renderer/webplugin_delegate_proxy.cc:1063: render_view_->UpdatePluginIMEStatus(input_type, caret_rect); Unless you have future plans for the ...
9 years, 6 months ago (2011-06-13 14:27:10 UTC) #5
Hironori Bono
Greeting Brett, Thank you for your review and comment. I have uploaded the updated change ...
9 years, 6 months ago (2011-06-16 07:34:11 UTC) #6
brettw
Content rubber stamp LGTM (didn't take time to understand the details).
9 years, 6 months ago (2011-06-16 17:37:06 UTC) #7
cpu_(ooo_6.6-7.5)
Justin's change makes it so there is always a window (dummy window for activation) even ...
9 years, 6 months ago (2011-06-18 00:31:37 UTC) #8
Hironori Bono
Greetings Carlos, In brief, it does not help simplify my change so much without changing ...
9 years, 6 months ago (2011-06-22 04:13:18 UTC) #9
cpu_(ooo_6.6-7.5)
9 years, 6 months ago (2011-06-23 19:54:33 UTC) #10
On 2011/06/22 04:13:18, hbono wrote:
> Greetings Carlos,
> 
> In brief, it does not help simplify my change so much without changing Flash
> code. (Flash calls ImmGetContext() with an invalid window handle, i.e.
> IsWindow() returns FALSE, for this case.)

Ok. 

> By the way, if I understand his change correctly, "using an IME attached to
the
> dummy window" is equal to "using an IME attached to a plug-in process", right?

Yes.

> To see IME-related regressions caused by sandboxed Flash, I'm a little
wondering
> if it is a good idea to keep attaching an IME to a plug-in process. (In my
> personal opinion, I would like to reduce dependency of a plugin process onto
> IMEs.) It may be an overkill, though.

I would also like to reduce the dependency on IME as well. For the time being
lets land your change when you are ready.  So LGTM.



> 
> Regards,
> 
> Hironori Bono

Powered by Google App Engine
This is Rietveld 408576698