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

Issue 6990072: The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. (Closed)

Created:
9 years, 7 months ago by kinaba
Modified:
9 years, 6 months ago
Reviewers:
James Su, oshima, kochi, brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, Jói, tburkard+watch_chromium.org, jam, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Hironori Bono
Visibility:
Public.

Description

The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. BUG=83684 TEST=Go to http://weathernews.jp with pepper flash plug in enabled. Focus the text input field and type something with IME on. Verify that the candidate window is shown somewhere on the screen and commited text is entered in the text field. This patch is the first step toward off-the-spot IME on Pepper plugins hosted on RenderWidgetHostViewGtk. This patch: - Makes it possible to turn on/off IME when a plugin is focused. - Makes it possible for the plugin to receive committed results from IME. What are NOT IN this patch (and what I hope to improve in forthcoming separate patches) are: - Proper placement of the candidate window. - Showing preedit texts. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87215

Patch Set 1 #

Total comments: 29

Patch Set 2 : Moved most changes into renderer, and several fixes on style. #

Total comments: 4

Patch Set 3 : Simplified RenderView::GetTextInputType and moved the focus-flag to PepperPluginDelegateImpl. #

Patch Set 4 : Fixed a silly mistake lacking an initialization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -8 lines) Patch
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M content/renderer/render_view.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 2 chunks +55 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kinaba
9 years, 7 months ago (2011-05-25 00:04:37 UTC) #1
kinaba
9 years, 7 months ago (2011-05-25 00:29:44 UTC) #2
James Su
Glad to know that you are working on it. I'm wondering if it can be ...
9 years, 7 months ago (2011-05-25 04:31:34 UTC) #3
kochi
Yes, we should add IME support in the PPAPI level, extending existing keyboard/char events. Please ...
9 years, 7 months ago (2011-05-25 05:51:19 UTC) #4
kochi
First round of comments. http://codereview.chromium.org/6990072/diff/1/chrome/browser/renderer_host/gtk_im_context_wrapper.cc File chrome/browser/renderer_host/gtk_im_context_wrapper.cc (right): http://codereview.chromium.org/6990072/diff/1/chrome/browser/renderer_host/gtk_im_context_wrapper.cc#newcode245 chrome/browser/renderer_host/gtk_im_context_wrapper.cc:245: || is_ppapi_plugin_focused_; Put || in ...
9 years, 7 months ago (2011-05-25 06:19:44 UTC) #5
James Su
On 2011/05/25 05:51:19, Takayoshi Kochi wrote: > Yes, we should add IME support in the ...
9 years, 7 months ago (2011-05-25 07:04:24 UTC) #6
kochi
On Wed, May 25, 2011 at 4:04 PM, <suzhe@chromium.org> wrote: > On 2011/05/25 05:51:19, Takayoshi ...
9 years, 7 months ago (2011-05-25 11:21:14 UTC) #7
oshima
just style nits http://codereview.chromium.org/6990072/diff/1/chrome/browser/prerender/prerender_render_widget_host_view.h File chrome/browser/prerender/prerender_render_widget_host_view.h (right): http://codereview.chromium.org/6990072/diff/1/chrome/browser/prerender/prerender_render_widget_host_view.h#newcode62 chrome/browser/prerender/prerender_render_widget_host_view.h:62: remove empty line http://codereview.chromium.org/6990072/diff/1/chrome/browser/renderer_host/render_widget_host_view_gtk.h File chrome/browser/renderer_host/render_widget_host_view_gtk.h ...
9 years, 7 months ago (2011-05-25 17:18:18 UTC) #8
kinaba
On 2011/05/25 07:04:24, James Su wrote: > A possible approach for such an intermediate solution ...
9 years, 7 months ago (2011-05-25 20:10:55 UTC) #9
kinaba
I've reorganized the patch so that the core of the modification goes into the renderer ...
9 years, 7 months ago (2011-05-25 22:23:53 UTC) #10
James Su
This CL looks much simpler now :) http://codereview.chromium.org/6990072/diff/7003/content/renderer/render_widget.h File content/renderer/render_widget.h (right): http://codereview.chromium.org/6990072/diff/7003/content/renderer/render_widget.h#newcode278 content/renderer/render_widget.h:278: WebKit::WebRect* caret_bounds); ...
9 years, 7 months ago (2011-05-26 01:29:55 UTC) #11
brettw
LGTM for a high level (so you don't have to wait for another pass from ...
9 years, 7 months ago (2011-05-26 02:57:26 UTC) #12
kochi
LGTM once James and Brett's comments are resolved. It looks much safer than the previous ...
9 years, 7 months ago (2011-05-26 03:44:48 UTC) #13
oshima
LGTM on my bits
9 years, 6 months ago (2011-05-26 18:39:46 UTC) #14
kinaba
http://codereview.chromium.org/6990072/diff/7003/content/renderer/render_view.h File content/renderer/render_view.h (right): http://codereview.chromium.org/6990072/diff/7003/content/renderer/render_view.h#newcode1065 content/renderer/render_view.h:1065: bool is_ppapi_plugin_focused_; On 2011/05/26 02:57:26, brettw wrote: > Can ...
9 years, 6 months ago (2011-05-30 03:07:11 UTC) #15
James Su
9 years, 6 months ago (2011-05-30 06:09:49 UTC) #16
LGTM.

Powered by Google App Engine
This is Rietveld 408576698