|
Bubble scroll events from WebView guest to embedder.
This CL implements a synchronous scroll-bubbling pathway
between an embedder and its guest. For scroll events
(currently MouseWheel and GestureScrollBegin/Update/End),
it passes relevant events to the guest, and waits to
receive the event status (consumed, not consumed) back
from the guest before BrowserPlugin indicates whether the
event was handled or not.
Although this blocks the embedder's main thread for scrolls,
it is simpler to do this, and when OOPIF scrolling is
implemented and WebView switches to use it, this pathway
will disappear.
For more details on scrolling event flow between embedder
and guest, and for the rationale for implementing a
synchronous solution, please refer to the "WebView" section
at the end of:
https://docs.google.com/document/d/1s6zuJaxet0fYs9isRnfS9Karad12GjxcgpT3ppbTjUQ/edit
BUG= 491940
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+332 lines, -16 lines) |
Patch |
 |
M |
chrome/browser/apps/guest_view/web_view_browsertest.cc
|
View
|
1
|
3 chunks |
+95 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/guest.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/guest.js
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/main.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/main.js
|
View
|
|
2 chunks |
+9 lines, -14 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/manifest.json
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/test.js
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_guest.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_guest.cc
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin/browser_plugin_messages.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.cc
|
View
|
|
2 chunks |
+20 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_manager.h
|
View
|
|
4 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_manager.cc
|
View
|
1
|
4 chunks |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_thread_impl.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 9 (2 generated)
|