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

Issue 2508363003: [refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController (Closed)

Created:
4 years, 1 month ago by EhsanK
Modified:
3 years, 12 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, jam, dcheng, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController In line with refactoring the duplicated IME code, the implementation of WebWidget::textInputInfo() and WebWidget::textInputType() have been moved to WebINputMethodController. The benefits of this refactor are: 1- This is compliant by the fact that the actual logic lives in InputMethodController class. Therefore, it makes sense to have the calles use the public wrapper instead of WebWidget. 2- This helps with the separation of WebView and WebWidget as the refactored methods are removed from both. This CL follows up on the original refactoring CL which landed WebInputMethodController (https://codereview.chromium.org/2333813002/). Doc: https://docs.google.com/document/d/13Nidlg5yIsxQRqXgBPqmb-KcT8q85Z1ds9Z1-Vo1XQQ/edit?usp=sharing BUG=629721 Committed: https://crrev.com/59cd849d12cffcc4f31281e758deb18111717796 Cr-Commit-Position: refs/heads/master@{#440046}

Patch Set 1 #

Total comments: 1

Patch Set 2 : 'controller' may be nullptr. #

Total comments: 2

Patch Set 3 : Addressing creis@'s comment #

Patch Set 4 : Rebased Fixed a compile error #

Patch Set 5 : Added #include to respect IWYU #

Patch Set 6 : Fixed a compile error on Windows #

Patch Set 7 : Followed creis@'s suggestion #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Patch Set 10 : Fixed Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -157 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -9 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputMethodControllerImpl.h View 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 57 chunks +99 lines, -76 lines 0 comments Download
M third_party/WebKit/public/web/WebInputMethodController.h View 2 chunks +13 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebWidget.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
EhsanK
Please, take a look. dglazkov@ or dcheng@: as blink owners. dtapuska@: for blink IME lfg@: ...
4 years, 1 month ago (2016-11-18 23:19:57 UTC) #4
dglazkov
LGTM, this is great!
4 years, 1 month ago (2016-11-19 16:16:54 UTC) #5
dtapuska
On 2016/11/19 16:16:54, dglazkov (OOO until Nov 28) wrote: > LGTM, this is great! lgtm
4 years ago (2016-11-23 20:35:40 UTC) #6
Charlie Reis
Thanks! content/ LGTM with one question. (No need to wait for me to land it ...
4 years ago (2016-11-23 23:35:09 UTC) #7
EhsanK
Thanks Charlie! I will try to land it. I made a slight change in response ...
4 years ago (2016-11-24 02:27:45 UTC) #8
EhsanK
On 2016/11/24 02:27:45, EhsanK wrote: > Thanks Charlie! I will try to land it. I ...
4 years ago (2016-11-24 22:13:08 UTC) #15
EhsanK
After the rebase all bots seem to be green. I will try to CQ. Thanks!
3 years, 12 months ago (2016-12-21 06:53:00 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/2508363003/180001
3 years, 12 months ago (2016-12-21 06:54:57 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/013c571926b3880f4d69b8a6184b0bc221c56c38
3 years, 12 months ago (2016-12-21 07:02:20 UTC) #26
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/59cd849d12cffcc4f31281e758deb18111717796 Cr-Commit-Position: refs/heads/master@{#440046}
3 years, 12 months ago (2016-12-21 07:04:02 UTC) #28
shimazu
3 years, 12 months ago (2016-12-21 08:38:55 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2592953003/ by shimazu@chromium.org.

The reason for reverting is: WebViewFocusInteractiveTest.Focus_FocusRestored got
flaky:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui....

Powered by Google App Engine
This is Rietveld 408576698