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

Issue 7041003: Show composition text on IME panel when Pepper plugin is focused (Linux). (Closed)

Created:
9 years, 6 months ago by kinaba
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Show composition text on IME panel when Pepper plugin is focused (Linux). BUG=83684 TEST=1. On Linux Chrome, load some PPAPI plugin (e.g., ppapi/example) 2. Focus the plugin element 3. Turn on IME and type some text 4. Verify composition text is drawn on the IME candidate panel. This is the second step for enabling off-the-spot IME on Pepper on ChromeOS/Linux, continuing from the first step r87215. This patch includes [many places] Add a boolean flag to indicate inline composition is supported or not. (WebKit should also be updated for supporting this kind of information for the final complete version of Pepper IME API, but not in this patch) [chrome/browser/renderer_host/render_widget_host_view_gtk.cc] Control IME context to show composition text on candidate window. (In this patch, only RenderWidgetHostViewGtk, i.e., Linux and ChromeOS is considered. On Windows and Mac, the behavior stays unchanged.) [content/renderer/render_view.cc] Turn the flag off when Pepper is focused. and not yet include - Enhancement of ChromeOS candidate window to have composition text area. - Proper placement of the candidate window. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89451

Patch Set 1 #

Patch Set 2 : Separated the preedit-needed flag to a different enum. #

Total comments: 4

Patch Set 3 : Changed to use boolean flag. #

Total comments: 2

Patch Set 4 : nit fix #

Total comments: 4

Patch Set 5 : Added DCHECK for keep Chromium and WebKit types in sync. #

Total comments: 2

Patch Set 6 : Added COMPILE_ASSERT #

Total comments: 3

Patch Set 7 : A todo comment is reworded to be more correct. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -60 lines) Patch
M chrome/browser/renderer_host/gtk_im_context_wrapper.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/gtk_im_context_wrapper.cc View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 5 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/render_view.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 1 chunk +14 lines, -4 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 5 chunks +29 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
kinaba
This is the second step for enabling off-the-spot Pepper IME continuing from http://codereview.chromium.org/6990072. Contrary to ...
9 years, 6 months ago (2011-06-08 07:23:46 UTC) #1
kochi
LGTM How about adding Oshima-san as a reviewer as well?
9 years, 6 months ago (2011-06-09 06:17:33 UTC) #2
James Su
Instead of adding a new text input type, I'd prefer to use a separate flag ...
9 years, 6 months ago (2011-06-09 07:50:21 UTC) #3
kinaba
On 2011/06/09 07:50:21, James Su wrote: > Instead of adding a new text input type, ...
9 years, 6 months ago (2011-06-10 13:03:07 UTC) #4
kinaba
On 2011/06/09 06:17:33, Takayoshi Kochi wrote: > LGTM > > How about adding Oshima-san as ...
9 years, 6 months ago (2011-06-10 13:04:06 UTC) #5
oshima
I'm probably not qualified to review this change as i'm not familiar with ime code ...
9 years, 6 months ago (2011-06-10 17:41:49 UTC) #6
James Su
http://codereview.chromium.org/7041003/diff/4001/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/7041003/diff/4001/content/common/view_messages.h#newcode1701 content/common/view_messages.h:1701: ui::TextInputPreeditType, /* preedit_type */ How about to use a ...
9 years, 6 months ago (2011-06-13 01:31:10 UTC) #7
kinaba
http://codereview.chromium.org/7041003/diff/4001/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/7041003/diff/4001/content/common/view_messages.h#newcode1701 content/common/view_messages.h:1701: ui::TextInputPreeditType, /* preedit_type */ On 2011/06/13 01:31:10, James Su ...
9 years, 6 months ago (2011-06-13 08:08:05 UTC) #8
James Su
LGTM. http://codereview.chromium.org/7041003/diff/4003/content/renderer/render_widget.h File content/renderer/render_widget.h (right): http://codereview.chromium.org/7041003/diff/4003/content/renderer/render_widget.h#newcode284 content/renderer/render_widget.h:284: // preedit text. nit: // composition text.
9 years, 6 months ago (2011-06-13 09:58:20 UTC) #9
kinaba
Thank you, James. I missed to check comments. Brett, could you please take a look ...
9 years, 6 months ago (2011-06-13 11:01:31 UTC) #10
brettw
http://codereview.chromium.org/7041003/diff/10004/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7041003/diff/10004/content/renderer/render_view.cc#newcode3995 content/renderer/render_view.cc:3995: } else { Normally we prefer no "else" after ...
9 years, 6 months ago (2011-06-13 14:52:36 UTC) #11
kinaba
http://codereview.chromium.org/7041003/diff/10004/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7041003/diff/10004/content/renderer/render_view.cc#newcode3995 content/renderer/render_view.cc:3995: } else { On 2011/06/13 14:52:36, brettw wrote: > ...
9 years, 6 months ago (2011-06-13 17:48:16 UTC) #12
brettw
http://codereview.chromium.org/7041003/diff/8004/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): http://codereview.chromium.org/7041003/diff/8004/content/renderer/render_widget.cc#newcode1304 content/renderer/render_widget.cc:1304: DCHECK(type <= ui::TEXT_INPUT_TYPE_PASSWORD) << I was thinking of something ...
9 years, 6 months ago (2011-06-13 17:50:25 UTC) #13
kinaba
http://codereview.chromium.org/7041003/diff/8004/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): http://codereview.chromium.org/7041003/diff/8004/content/renderer/render_widget.cc#newcode1304 content/renderer/render_widget.cc:1304: DCHECK(type <= ui::TEXT_INPUT_TYPE_PASSWORD) << On 2011/06/13 17:50:25, brettw wrote: ...
9 years, 6 months ago (2011-06-13 18:08:03 UTC) #14
kinaba
Brett, do you think it is ok to commit now? On 2011/06/13 18:08:03, kinaba wrote: ...
9 years, 6 months ago (2011-06-15 02:31:51 UTC) #15
brettw
The asserts look fine, I didn't check the rest.
9 years, 6 months ago (2011-06-15 02:39:32 UTC) #16
kochi
On 2011/06/15 02:39:32, brettw wrote: > The asserts look fine, I didn't check the rest. ...
9 years, 6 months ago (2011-06-16 10:26:16 UTC) #17
brettw
LGTM http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc#newcode3992 content/renderer/render_view.cc:3992: // consider all the parts of PPAPI plugins ...
9 years, 6 months ago (2011-06-16 17:39:43 UTC) #18
kochi
http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc#newcode3992 content/renderer/render_view.cc:3992: // consider all the parts of PPAPI plugins are ...
9 years, 6 months ago (2011-06-17 03:47:21 UTC) #19
brettw
On Thu, Jun 16, 2011 at 8:47 PM, <kochi@chromium.org> wrote: > > http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc > File ...
9 years, 6 months ago (2011-06-17 04:01:52 UTC) #20
kinaba
http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7041003/diff/3008/content/renderer/render_view.cc#newcode3992 content/renderer/render_view.cc:3992: // consider all the parts of PPAPI plugins are ...
9 years, 6 months ago (2011-06-17 04:12:25 UTC) #21
commit-bot: I haz the power
9 years, 6 months ago (2011-06-17 07:59:48 UTC) #22
Change committed as 89451

Powered by Google App Engine
This is Rietveld 408576698