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

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)

Created:
4 years ago by Changwan Ryu
Modified:
3 years, 11 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up names and remove unnecessary parameter is_non_ime_change and from_non_ime are difficult to understand - it's negative and the meaning of non-ime change and from non-ime are unclear. Also, !is_non_ime_change is a double negative and can be very confusing. Replace these names by reply_to_request. Also, reply_to_request is currently set only in RenderWidget::OnRequestTextInputStateUpdate(). By having it call an internal function, we can remove the parameter from all the other call sites. Moreover, HIDE_IME is incorrectly named - it does not hide virtual keyboard. And SHOW_IME and showImeIfNeeded() are mildly confusing - it may sound as if it affected hardware keyboard but it is actually only concerned with virtual keyboard. "IfNeeded" was added to stress the point that it only affects virtual keyboard case. ImeOnFocusTest.cpp is easier to read after this change. By adding another function ShowVirtualKeyboard(), the call sites no longer need to pass a parameter. Note that showImeIfNeeded() and show_ime_if_needed in the message and browser process have not changed yet. There are up to 100 files that are affected, so I will separate them out as a single-themed change. BUG=662279 Review-Url: https://codereview.chromium.org/2596193002 Cr-Commit-Position: refs/heads/master@{#443836} Committed: https://chromium.googlesource.com/chromium/src/+/75e3b207a503c0ad4ad141ca78b7cf4bd06da4ae

Patch Set 1 #

Patch Set 2 : fix baseurl #

Patch Set 3 : use correct patch #

Total comments: 10

Patch Set 4 : change parameter name, pass parameter directly #

Total comments: 3

Patch Set 5 : change show_ime to show_virtual_keyboard in the renderer #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : rebased #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -148 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/common/text_input_state.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/text_input_state.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ChromiumBaseInputConnection.java View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/TextInputState.java View 1 2 3 5 chunks +10 lines, -10 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionTest.java View 2 6 chunks +8 lines, -8 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 2 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/text_input_test_utils.cc View 2 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/ime_event_guard.h View 1 2 3 4 1 chunk +5 lines, -6 lines 0 comments Download
M content/renderer/ime_event_guard.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 2 3 4 5 6 3 chunks +3 lines, -4 lines 0 comments Download
M content/renderer/input/render_widget_input_handler_delegate.h View 1 2 3 4 2 chunks +8 lines, -16 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 9 chunks +33 lines, -33 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 3 4 4 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebWidgetClient.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 63 (38 generated)
Changwan Ryu
3 years, 12 months ago (2016-12-26 01:14:32 UTC) #6
Changwan Ryu
I realized that FROM_IME may still be useful if we want to update text input ...
3 years, 11 months ago (2016-12-28 06:20:14 UTC) #7
Changwan Ryu
On 2016/12/28 06:20:14, Changwan Ryu wrote: > I realized that FROM_IME may still be useful ...
3 years, 11 months ago (2016-12-29 06:11:41 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/2596193002/diff/40001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2596193002/diff/40001/content/renderer/render_widget.cc#newcode1022 content/renderer/render_widget.cc:1022: bool update_requested = ime_requested_update_; I don't think we should ...
3 years, 11 months ago (2017-01-04 00:59:51 UTC) #17
Changwan Ryu
https://codereview.chromium.org/2596193002/diff/40001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2596193002/diff/40001/content/renderer/render_widget.cc#newcode1022 content/renderer/render_widget.cc:1022: bool update_requested = ime_requested_update_; On 2017/01/04 00:59:51, aelias wrote: ...
3 years, 11 months ago (2017-01-04 06:43:46 UTC) #21
aelias_OOO_until_Jul13
lgtm modulo further naming change: https://codereview.chromium.org/2596193002/diff/60001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/2596193002/diff/60001/content/common/view_messages.h#newcode288 content/common/view_messages.h:288: IPC_STRUCT_TRAITS_MEMBER(show_ime_if_needed) Please rename to ...
3 years, 11 months ago (2017-01-04 20:11:01 UTC) #24
Changwan Ryu
https://codereview.chromium.org/2596193002/diff/60001/content/renderer/input/render_widget_input_handler_delegate.h File content/renderer/input/render_widget_input_handler_delegate.h (right): https://codereview.chromium.org/2596193002/diff/60001/content/renderer/input/render_widget_input_handler_delegate.h#newcode27 content/renderer/input/render_widget_input_handler_delegate.h:27: enum class ShowIme { IF_NEEDED, DO_NOT_SHOW }; On 2017/01/04 ...
3 years, 11 months ago (2017-01-05 08:47:03 UTC) #25
aelias_OOO_until_Jul13
On 2017/01/05 at 08:47:03, changwan wrote: > How about adding a separate virtual function ShowVirtualKeyboard() ...
3 years, 11 months ago (2017-01-05 23:20:55 UTC) #26
Changwan Ryu
Could you take another look? Thanks.
3 years, 11 months ago (2017-01-10 01:40:34 UTC) #29
aelias_OOO_until_Jul13
lgtm modulo comment https://codereview.chromium.org/2596193002/diff/80001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2596193002/diff/80001/content/renderer/render_widget.cc#newcode1025 content/renderer/render_widget.cc:1025: void RenderWidget::ShowVirtualKeyboard() { Could you avoid ...
3 years, 11 months ago (2017-01-10 01:49:55 UTC) #31
Changwan Ryu
https://codereview.chromium.org/2596193002/diff/80001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2596193002/diff/80001/content/renderer/render_widget.cc#newcode1025 content/renderer/render_widget.cc:1025: void RenderWidget::ShowVirtualKeyboard() { On 2017/01/10 01:49:55, aelias wrote: > ...
3 years, 11 months ago (2017-01-12 04:53:10 UTC) #34
Changwan Ryu
Adding owners. boliu@chromium.org: Please review changes in content_view_core_impl.* dcheng@chromium.org: Please review changes in content/common/view_messages.h third_party/WebKit/Source/core/dom/Element.cpp ...
3 years, 11 months ago (2017-01-12 05:00:54 UTC) #36
boliu
On 2017/01/12 05:00:54, Changwan Ryu wrote: > Adding owners. > > > mailto:boliu@chromium.org: Please review ...
3 years, 11 months ago (2017-01-12 05:05:59 UTC) #37
nasko
Rubberstamp LGTM on: content/common/text_input_state.* content/public/test/text_input_test_utils.* content/test/layouttest_support.cc content/common/view_messages.h
3 years, 11 months ago (2017-01-12 19:18:30 UTC) #38
dcheng
blink lgtm
3 years, 11 months ago (2017-01-12 23:18:01 UTC) #39
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/2596193002/80001
3 years, 11 months ago (2017-01-13 01:25:00 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/135242) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-13 01:29:11 UTC) #43
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/2596193002/100001
3 years, 11 months ago (2017-01-13 01:34:43 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/135247) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-13 01:38:36 UTC) #48
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/2596193002/120001
3 years, 11 months ago (2017-01-13 07:24:50 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/347803)
3 years, 11 months ago (2017-01-13 08:17:49 UTC) #53
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/2596193002/120001
3 years, 11 months ago (2017-01-15 23:34:36 UTC) #55
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_android.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-16 01:06:48 UTC) #57
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/2596193002/140001
3 years, 11 months ago (2017-01-16 01:28:09 UTC) #60
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 02:55:38 UTC) #63
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/75e3b207a503c0ad4ad141ca78b7...

Powered by Google App Engine
This is Rietveld 408576698