|
<webview>: Implement dialog API
This CL implements a JavaScript Dialog API for <webview>. This API allows the embedder to intercept requests for alert/confirm/prompt dialogs, giving the embedder an opportunity to asynchronously display UI to respond to these requests.
Note: This API blocks the guest until one of three things happens:
1. The default is not prevented, and so the default action is equivalent to canceling the dialog.
2. The default is prevented and the event.dialog object becomes unreachable in JS and is garbage collected.
3. An action is taken: event.dialog.ok(...) or event.dialog.cancel();
BUG= 260745
Test=WebViewTest.Dialog_*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213369
Total comments: 14
Total comments: 21
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+690 lines, -58 lines) |
Patch |
 |
M |
chrome/browser/extensions/web_view_browsertest.cc
|
View
|
1
2
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/web_view.js
|
View
|
1
2
3
|
7 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/web_view_experimental.js
|
View
|
1
2
3
4
5
|
2 chunks |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/dialog/embedder.html
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/dialog/embedder.js
|
View
|
1
2
3
4
5
|
1 chunk |
+302 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/dialog/inject_dialog.js
|
View
|
1
2
3
4
5
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/dialog/manifest.json
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/dialog/test.js
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.h
|
View
|
1
2
3
|
7 chunks |
+27 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+130 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin/browser_plugin_constants.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin/browser_plugin_constants.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin/browser_plugin_message_enums.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin/browser_plugin_messages.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.h
|
View
|
1
2
3
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+20 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_bindings.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|