|
Reland: Update TextSelection for non-user initiated events
This makes Chromium Content API to be able to notify about text
selection changes triggered by non-user events. The source of the
selection event is held by |TextSelection.user_initiated| and this
information is propagated from renderers to the browser process.
Reason for reland:
Non-user initiated text selection events are suppressed for the
following corner cases:
- Ignore subsequent empty non-user initiated text selection events.
- Ignore text selection events during replacement by IME composition.
Original issue's description:
> Update TextSelection for non-user initiated events
>
> This makes Chromium Content API to be able to notify about text
> selection changes triggered by non-user events (eg. JavaScript, IME,
> autofill).
>
> R=creis@chromium.org,nasko@chromium.org,ekaramad@chromium.org
> BUG= 671986
> TEST=interactive_ui_tests
> --gtest_filter=SitePerProcessTextInputManagerTest.NonUserInitiatedTextSelection
> CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
>
> Review-Url: https://codereview.chromium.org/2856093003
> Cr-Commit-Position: refs/heads/master@{#473834}
> Committed: https://chromium.googlesource.com/chromium/src/+/d48794b9728276c1183b0c56f8cb7afe71b7bca4
R=creis@chromium.org,nasko@chromium.org,ekaramad@chromium.org,thestig@chromium.org,changwan@chromium.org
BUG= 671986
TEST=
interactive_ui_tests --gtest_filter=SitePerProcessTextInputManagerTest.*UserInitiatedTextSelection
interactive_ui_tests --gtest_filter=SitePerProcessTextInputManagerTest.TextSelectionOnFocusChange
interactive_ui_tests --gtest_filter=SitePerProcessTextInputManagerTest.ImeSetCompositionTextReplacement
interactive_ui_tests --gtest_filter=SitePerProcessTextInputManagerTest.JSCursorMovement
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+506 lines, -101 lines) |
Patch |
|
M |
AUTHORS
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc
|
View
|
1
2
|
4 chunks |
+330 lines, -16 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_frame_host_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_guest.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_guest.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_base.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_base.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
|
View
|
1
2
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/text_input_manager.h
|
View
|
1
|
3 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/text_input_manager.cc
|
View
|
1
2
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/common/frame_messages.h
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/public/renderer/render_frame.h
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/public/test/text_input_test_utils.h
|
View
|
1
2
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/test/text_input_test_utils.cc
|
View
|
1
2
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/input/frame_input_handler_impl.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/input/render_widget_input_handler.h
|
View
|
1
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/input/render_widget_input_handler.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.h
|
View
|
1
2
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
|
8 chunks |
+59 lines, -37 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_widget.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (3 generated)
|