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

Issue 144803003: Fix issue that IME can't be enabled when set Plugin mode to "Click to play". (Closed)

Created:
6 years, 11 months ago by Ruiyi Luo
Modified:
6 years, 10 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix issue that IME can't be enabled when set Plugin mode to "Click to play". In normal mode, the plugin is created at the moment the page is loaded. Then when the first time the plugin is clicked. It will set the flag "has_webkit_focus_" true in real plugin instance. Then, send out the focus change notification in PepperPluginInstanceImpl::SetWebKitFocus, which will finally affect the IME stuff. However, at "Click to play" mode, WebViewPlugin is created at first, which will be replaced by real plugin. When the first time we click, the real plugin is created, loaded. But no focus is set in real plugin, which cause the IME stuff can't be enabled. In solution, we transfer the |focused_| in WebViewPlugin to new plugin after it loaded. BUG=336740 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251303

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update the fixing with a focused_ flag in WebViewPlugin #

Total comments: 7

Patch Set 3 : Updating the fixing with merging into ReplayReceivedData. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
components/plugins/renderer/webview_plugin.cc View 1 2 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Ruiyi Luo
I don't know who else is available for this review. Thanks a lot.
6 years, 11 months ago (2014-01-22 09:29:03 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/144803003/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/144803003/diff/1/AUTHORS#newcode259 AUTHORS:259: Ruiyi Luo <luoruiyi2008@gmail.com> You also need to sign the ...
6 years, 11 months ago (2014-01-22 10:15:09 UTC) #2
Ruiyi Luo
https://codereview.chromium.org/144803003/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/144803003/diff/1/AUTHORS#newcode259 AUTHORS:259: Ruiyi Luo <luoruiyi2008@gmail.com> On 2014/01/22 10:15:09, Bernhard Bauer wrote: ...
6 years, 11 months ago (2014-01-24 13:18:22 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/144803003/diff/1/components/plugins/renderer/plugin_placeholder.cc File components/plugins/renderer/plugin_placeholder.cc (right): https://codereview.chromium.org/144803003/diff/1/components/plugins/renderer/plugin_placeholder.cc#newcode215 components/plugins/renderer/plugin_placeholder.cc:215: plugin->updateFocus(true); On 2014/01/24 13:18:22, Ruiyi.Luo wrote: > Hello Bernhard, ...
6 years, 11 months ago (2014-01-24 13:37:52 UTC) #4
Ruiyi Luo
Great Bernhard, Your answers are exactly what I want. I have update the patch with ...
6 years, 11 months ago (2014-01-25 05:00:25 UTC) #5
Ruiyi Luo
6 years, 11 months ago (2014-01-25 05:01:43 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/144803003/diff/90001/components/plugins/renderer/plugin_placeholder.cc File components/plugins/renderer/plugin_placeholder.cc (right): https://codereview.chromium.org/144803003/diff/90001/components/plugins/renderer/plugin_placeholder.cc#newcode87 components/plugins/renderer/plugin_placeholder.cc:87: // We need to transfer the |focused_| to new ...
6 years, 11 months ago (2014-01-25 14:36:37 UTC) #7
Ruiyi Luo
I have updated it with merging it into ReplayReceivedData(), also removing the HasFocus(). This is ...
6 years, 11 months ago (2014-01-26 09:34:18 UTC) #8
Ruiyi Luo
https://codereview.chromium.org/144803003/diff/90001/components/plugins/renderer/plugin_placeholder.cc File components/plugins/renderer/plugin_placeholder.cc (right): https://codereview.chromium.org/144803003/diff/90001/components/plugins/renderer/plugin_placeholder.cc#newcode87 components/plugins/renderer/plugin_placeholder.cc:87: // We need to transfer the |focused_| to new ...
6 years, 11 months ago (2014-01-26 09:40:28 UTC) #9
Bernhard Bauer
LGTM, thanks for putting up with my nits!
6 years, 11 months ago (2014-01-26 18:38:42 UTC) #10
Ruiyi Luo
Hi Bernhard, it still need you commit it for me as I am not a ...
6 years, 11 months ago (2014-01-27 07:25:47 UTC) #11
Bernhard Bauer
On 2014/01/27 07:25:47, Ruiyi.Luo wrote: > Hi Bernhard, it still need you commit it for ...
6 years, 11 months ago (2014-01-27 09:04:46 UTC) #12
Ruiyi Luo
The CQ bit was checked by luoruiyi2008@gmail.com
6 years, 10 months ago (2014-02-14 03:16:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/luoruiyi2008@gmail.com/144803003/180001
6 years, 10 months ago (2014-02-14 03:18:04 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 14:09:48 UTC) #15
Message was sent while issue was closed.
Change committed as 251303

Powered by Google App Engine
This is Rietveld 408576698