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

Issue 1234193002: Simplify InputMethodWin initialization. (Closed)

Created:
5 years, 5 months ago by Shu Chen
Modified:
5 years, 5 months ago
CC:
chromium-reviews, nona+watch_chromium.org, James Su, shuchen+watch_chromium.org, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify InputMethodWin initialization. 1) Removes the "active" state of InputMethod. 2) Removes RenderWidget::input_method_is_active_, and allows IPCs when system IME is not active. 3) Removes COM dependency in InputMethodWin. TBR=erg@chromium.org BUG=296509, 471580, 474828 TEST=On locally builds, makes sure no regressions when typing text with/without system IMEs activated. Committed: https://crrev.com/4c937892ddf18a7246e682b4885af55a050ad962 Cr-Commit-Position: refs/heads/master@{#339408}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : rebased. #

Patch Set 6 : cq green. #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : fixed test failures on Android. #

Total comments: 2

Patch Set 10 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -219 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 2 chunks +1 line, -18 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 3 chunks +0 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 3 chunks +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 5 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 6 chunks +0 lines, -25 lines 2 comments Download
M mandoline/ui/aura/input_method_mandoline.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M mandoline/ui/aura/input_method_mandoline.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/dummy_input_method.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/dummy_input_method.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method.h View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M ui/base/ime/input_method_auralinux.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/input_method_auralinux.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ui/base/ime/input_method_base_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/input_method_chromeos.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/input_method_chromeos.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_chromeos_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M ui/base/ime/input_method_mac.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/input_method_mac.mm View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_minimal.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/input_method_minimal.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_win.h View 1 2 3 4 3 chunks +0 lines, -9 lines 0 comments Download
M ui/base/ime/input_method_win.cc View 1 2 3 4 4 chunks +1 line, -13 lines 0 comments Download
M ui/base/ime/mock_input_method.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/ime/mock_input_method.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/remote_input_method_win.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/win/imm32_manager.h View 1 2 3 2 chunks +1 line, -13 lines 0 comments Download
M ui/base/ime/win/imm32_manager.cc View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -22 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 45 (16 generated)
Shu Chen
James/Yohei, can you please review this cl? Thanks
5 years, 5 months ago (2015-07-15 07:27:48 UTC) #2
James Su
lgtm
5 years, 5 months ago (2015-07-15 08:08:39 UTC) #3
yukawa
I have no strong objection to this CL but I think what I wanted to ...
5 years, 5 months ago (2015-07-15 08:27:13 UTC) #4
Shu Chen
On 2015/07/15 08:27:13, yukawa wrote: > I have no strong objection to this CL but ...
5 years, 5 months ago (2015-07-15 08:32:22 UTC) #5
Shu Chen
Hi yukawa@, I've uploaded a new patchset cover crbug.com/296509. Can you please take a look? ...
5 years, 5 months ago (2015-07-16 09:23:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/80001
5 years, 5 months ago (2015-07-17 02:33:23 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/92733)
5 years, 5 months ago (2015-07-17 02:43:10 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/100001
5 years, 5 months ago (2015-07-17 04:07:24 UTC) #12
Shu Chen
+nasko@ for content/common/view_messages.h. +avi@ for content/renderer/render_widget.*. +sadrul@ for content/browser/...
5 years, 5 months ago (2015-07-17 04:09:02 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/17711) (exceeded global ...
5 years, 5 months ago (2015-07-17 04:21:07 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/120001
5 years, 5 months ago (2015-07-17 04:35:12 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/93317) (exceeded global ...
5 years, 5 months ago (2015-07-17 04:43:43 UTC) #20
Avi (use Gerrit)
content/renderer/render_widget.* lgtm The TEST= line isn't about how you tested it (surely you did) but ...
5 years, 5 months ago (2015-07-17 04:45:48 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/140001
5 years, 5 months ago (2015-07-17 05:42:55 UTC) #23
yukawa
LGTM with one minor comment. https://codereview.chromium.org/1234193002/diff/160001/ui/base/ime/win/imm32_manager.cc File ui/base/ime/win/imm32_manager.cc (right): https://codereview.chromium.org/1234193002/diff/160001/ui/base/ime/win/imm32_manager.cc#newcode7 ui/base/ime/win/imm32_manager.cc:7: #include <msctf.h> nit: Can ...
5 years, 5 months ago (2015-07-17 07:50:37 UTC) #24
Shu Chen
On 2015/07/17 04:45:48, Avi wrote: > content/renderer/render_widget.* lgtm > > The TEST= line isn't about ...
5 years, 5 months ago (2015-07-17 08:21:05 UTC) #25
Shu Chen
https://codereview.chromium.org/1234193002/diff/160001/ui/base/ime/win/imm32_manager.cc File ui/base/ime/win/imm32_manager.cc (right): https://codereview.chromium.org/1234193002/diff/160001/ui/base/ime/win/imm32_manager.cc#newcode7 ui/base/ime/win/imm32_manager.cc:7: #include <msctf.h> On 2015/07/17 07:50:36, yukawa wrote: > nit: ...
5 years, 5 months ago (2015-07-17 08:22:00 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/180001
5 years, 5 months ago (2015-07-17 08:22:33 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-17 09:29:48 UTC) #30
nasko
IPC removal LGTM!
5 years, 5 months ago (2015-07-17 09:53:39 UTC) #31
sadrul
stamp lgtm
5 years, 5 months ago (2015-07-19 01:16:47 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/180001
5 years, 5 months ago (2015-07-19 09:22:46 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/80017)
5 years, 5 months ago (2015-07-19 09:31:46 UTC) #37
Shu Chen
TBR'ing erg@ for trivial changes under mandoline/...
5 years, 5 months ago (2015-07-19 09:34:20 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234193002/180001
5 years, 5 months ago (2015-07-19 09:34:39 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-07-19 10:33:23 UTC) #41
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/4c937892ddf18a7246e682b4885af55a050ad962 Cr-Commit-Position: refs/heads/master@{#339408}
5 years, 5 months ago (2015-07-19 10:34:32 UTC) #42
jdduke (slow)
https://codereview.chromium.org/1234193002/diff/180001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (left): https://codereview.chromium.org/1234193002/diff/180001/content/renderer/render_widget.cc#oldcode1922 content/renderer/render_widget.cc:1922: #endif It would be really nice if we could ...
5 years, 5 months ago (2015-07-22 20:40:59 UTC) #44
Shu Chen
5 years, 5 months ago (2015-07-23 00:57:46 UTC) #45
Message was sent while issue was closed.
https://codereview.chromium.org/1234193002/diff/180001/content/renderer/rende...
File content/renderer/render_widget.cc (left):

https://codereview.chromium.org/1234193002/diff/180001/content/renderer/rende...
content/renderer/render_widget.cc:1922: #endif
On 2015/07/22 20:40:59, jdduke wrote:
> It would be really nice if we could reland your merger of
> UpdateTextInputType/State (https://codereview.chromium.org/326403002). Is
there
> a reason that hasn't pushed forward? We're paying for this IPC on Android even
> though it goes completely unused.

CL https://codereview.chromium.org/326403002 got reverted due to
crbug.com/417152, of which the comment #13 tells the root cause which was due to
the |input_method_is_active_| flag here. So UpdateTextInputType() always does
the thing on Windows, but UpdateTextInputState() doesn't.

After this CL, I think it would be safe to reland
https://codereview.chromium.org/326403002.

Powered by Google App Engine
This is Rietveld 408576698