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

Issue 2694543002: [refactor] Cleanup IME State in RenderWidgetHostViewMac which is already tracked by TextInputManager (Closed)

Created:
3 years, 10 months ago by EhsanK
Modified:
3 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, mac-reviews_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[refactor] Cleanup IME State in RenderWidgetHostViewMac which is already tracked by TextInputManager This CL will cleanup some text selection and composition information related variables inside RenderWidgetHostViewMac. These values are already tracked by TextInputManager so keeping them inside RenderWidgetHostViewMac is costly. In line with this, some changes to TextInputManager::TextSelection led to small changes to both RenderWidgetHostViewAura and RenderWidgetHostViewAndroid. BUG=602427 Review-Url: https://codereview.chromium.org/2694543002 Cr-Commit-Position: refs/heads/master@{#454367} Committed: https://chromium.googlesource.com/chromium/src/+/374b2669b0af7cd88882cff28555f5aaa04c52d7

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Fixing some compile errors #

Patch Set 4 : Fixed a compile error on Aura #

Patch Set 5 : Fixed a compile error on Mac #

Total comments: 33

Patch Set 6 : Rebased #

Patch Set 7 : Addressing creis@'s comments #

Patch Set 8 : Rebased #

Patch Set 9 : Fixed compile errors #

Patch Set 10 : Caching |selected_text_| again. #

Patch Set 11 : Fixed a compile error #

Patch Set 12 : Fixed another compile error for Android test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -169 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 5 chunks +13 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 8 9 1 chunk +1 line, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 8 9 3 chunks +10 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 13 chunks +99 lines, -69 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 8 9 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 5 6 8 9 1 chunk +28 lines, -10 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 5 6 8 9 3 chunks +26 lines, -29 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -7 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 66 (54 generated)
EhsanK
Hello Charlie, Avi, This is the refactor promised after : https://codereview.chromium.org/2659433002/#msg12 Could you please take ...
3 years, 10 months ago (2017-02-13 16:49:46 UTC) #18
Avi (use Gerrit)
Looks reasonable. LGTM https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1129 content/browser/renderer_host/render_widget_host_view_mac.mm:1129: // TODO: This will not work ...
3 years, 10 months ago (2017-02-13 17:51:32 UTC) #19
EhsanK
Thanks Avi! https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1129 content/browser/renderer_host/render_widget_host_view_mac.mm:1129: // TODO: This will not work with ...
3 years, 10 months ago (2017-02-13 18:07:57 UTC) #20
Charlie Reis
Thanks! Mostly looks good-- a few clarifying questions and nits below. https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): ...
3 years, 10 months ago (2017-02-14 00:46:43 UTC) #21
Charlie Reis
[-site_isolation_reviews@chromium.org, +site-isolation-reviews@chromium.org]
3 years, 10 months ago (2017-02-14 00:47:19 UTC) #23
EhsanK
Thanks Charlie, PTAL. https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2694543002/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode785 content/browser/renderer_host/render_widget_host_view_android.cc:785: content_view_core_->OnSelectionChanged( On 2017/02/14 00:46:42, Charlie Reis ...
3 years, 10 months ago (2017-02-14 18:48:59 UTC) #24
Charlie Reis
Sorry for the delay-- LGTM with one question about the efficiency of text_ vs selected_text_. ...
3 years, 10 months ago (2017-02-21 22:57:38 UTC) #25
EhsanK
Thanks Charlie! In short, I am not caching in the final patch. Please let me ...
3 years, 10 months ago (2017-02-24 18:34:40 UTC) #50
Charlie Reis
On 2017/02/24 18:34:40, EhsanK wrote: > Thanks Charlie! > > In short, I am not ...
3 years, 9 months ago (2017-02-28 04:46:32 UTC) #51
EhsanK
Thanks Charlie! I am going ahead with the cached version then.
3 years, 9 months ago (2017-03-02 19:23:09 UTC) #60
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/2694543002/300001
3 years, 9 months ago (2017-03-02 19:24:12 UTC) #63
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 20:45:37 UTC) #66
Message was sent while issue was closed.
Committed patchset #12 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/374b2669b0af7cd88882cff28555...

Powered by Google App Engine
This is Rietveld 408576698