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

Issue 2229223002: Route IME-related IPCs to the active/focused RenderWidget (Mac) (Closed)

Created:
4 years, 4 months ago by EhsanK
Modified:
4 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, site-isolation-reviews_chromium.org, Alexei Svitkine (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Route IME-related IPCs to the active/focused RenderWidget (Mac) This CL will route IPCs resulted from IME-related methods in RenderWidgetHostCocoaView to the correct (focused) RenderWidget. The CL also adds unit tests for each method modified. Modified methods: * confirmComposition (InputMsg_ImeConfirmComposition) * insertText (InputMsg_ImeConfirmComposition) * setMarkedText (InputMsg_ImeSetComposition) * unmarkText (InputMsg_ImeConfirmComposition) BUG=578168, 602723 Committed: https://crrev.com/fd5f5a89a6a3cc76fade71f9c32e4be1801d95ea Cr-Commit-Position: refs/heads/master@{#411552}

Patch Set 1 #

Patch Set 2 : Fixed an error in test #

Patch Set 3 : Refactored Tests #

Patch Set 4 : Rebased #

Total comments: 4

Patch Set 5 : Addressing avi@'s comments #

Total comments: 7

Patch Set 6 : Rebased #

Patch Set 7 : Addressed erickchen@ comments + Making RWHVMacTest -> InputMethodMacTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -17 lines) Patch
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 7 chunks +28 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 6 2 chunks +177 lines, -6 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
EhsanK
PTAL.
4 years, 4 months ago (2016-08-10 20:06:13 UTC) #9
Avi (use Gerrit)
LGTM but it's been a while since I've dealt with the Mac UI. Can you ...
4 years, 4 months ago (2016-08-10 21:01:41 UTC) #10
EhsanK
Thank you avi@ for the reviews. PTAL. Adding asvitkine@ for Mac UI. asvitkine@: Could you ...
4 years, 4 months ago (2016-08-10 21:27:29 UTC) #12
Alexei Svitkine (slow)
Routing to erikchen@ for Mac UI as I'm just as out of touch (or possibly ...
4 years, 4 months ago (2016-08-11 06:14:02 UTC) #14
erikchen
lgtm This seems ok to me, though I'm not an expert for IME on Mac ...
4 years, 4 months ago (2016-08-11 16:25:30 UTC) #15
Avi (use Gerrit)
m https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm File content/browser/renderer_host/render_widget_host_view_mac_unittest.mm (right): https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm#newcode1339 content/browser/renderer_host/render_widget_host_view_mac_unittest.mm:1339: NSRange selectedRange = NSMakeRange(0, 4); On 2016/08/11 16:25:30, ...
4 years, 4 months ago (2016-08-11 17:25:31 UTC) #16
EhsanK
Thank you for the reviews. PTAL. https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm File content/browser/renderer_host/render_widget_host_view_mac_unittest.mm (right): https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm#newcode1268 content/browser/renderer_host/render_widget_host_view_mac_unittest.mm:1268: child_process_host_ = new ...
4 years, 4 months ago (2016-08-11 20:42:58 UTC) #17
erikchen
https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm File content/browser/renderer_host/render_widget_host_view_mac_unittest.mm (right): https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm#newcode1268 content/browser/renderer_host/render_widget_host_view_mac_unittest.mm:1268: child_process_host_ = new MockRenderProcessHost(&browser_context_); On 2016/08/11 20:42:58, EhsanK wrote: ...
4 years, 4 months ago (2016-08-11 20:52:39 UTC) #18
EhsanK
On 2016/08/11 20:52:39, erikchen wrote: > https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm > File content/browser/renderer_host/render_widget_host_view_mac_unittest.mm > (right): > > https://codereview.chromium.org/2229223002/diff/100001/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm#newcode1268 ...
4 years, 4 months ago (2016-08-11 21:49:24 UTC) #19
EhsanK
Thank you all for the reviews! FYI, I will CQ after successful dry-run.
4 years, 4 months ago (2016-08-11 21:50:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2229223002/140001
4 years, 4 months ago (2016-08-12 04:29:51 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 4 months ago (2016-08-12 04:33:27 UTC) #32
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 04:35:41 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fd5f5a89a6a3cc76fade71f9c32e4be1801d95ea
Cr-Commit-Position: refs/heads/master@{#411552}

Powered by Google App Engine
This is Rietveld 408576698