|
|
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
Total comments: 10
Total comments: 3
Total comments: 2
|
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
|
Total messages: 63 (38 generated)
|