|
Reland: Web MIDI: use mojom::blink::PermissionService directly to ask permission
Changes from the first attempt:
- AwPermissionManager::RequestPermissions() was implemented for
Android WebView in a separate CL.
- Workarounds to avoid touching NOTIMPLEMENTED() was removed
Original description follows:
SystemWebViewShellLayoutTest failed because of the same reason with
other modified tests in this CL. Tests are modified to pass, but now
it does not cover {sysex:true} case that needs
AwPermissionManager::RequestPermissions implementation.
It will be implemented in the next CL soon.
Original description follows:
Web MIDI asked permissions via public/web interfaces.
But now that PermissionService is available in Blink,
use the service to ask permissions.
This migration makes it possible to remove all MIDI
related public/web interfaces.
BUG= 582328
Committed: https://crrev.com/15c1a1ffd1f4c620b89191209dc76ef5557dd8fc
Cr-Commit-Position: refs/heads/master@{#404136}
TEST=${OUT}/bin/run_system_webview_shell_layout_test_apk # with a built SystemWebViewGoogle.apk
TEST=git cl try
Committed: https://crrev.com/8c21bb977b580edb009eb2fe0d3f511fd5ca42f4
Cr-Commit-Position: refs/heads/master@{#408621}
Total comments: 6
Total comments: 4
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+74 lines, -791 lines) |
Patch |
|
M |
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
D |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess-permission-denied-expected.html
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
A + |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess-permission-denied-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess-with-sysex.html
|
View
|
1
2
3
4
5
6
7
8
9
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A + |
android_webview/tools/system_webview_shell/test/data/blink-apis/webmidi/requestmidiaccess-with-sysex-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
M |
content/content_renderer.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
content/renderer/media/midi_dispatcher.h
|
View
|
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
D |
content/renderer/media/midi_dispatcher.cc
|
View
|
|
1 chunk |
+0 lines, -73 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webmidi/loopback-receive.html
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webmidi/permission.html
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webmidi/send-messages.html
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/modules.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+45 lines, -40 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/modules/webmidi/MIDIClient.h
|
View
|
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/modules/webmidi/MIDIController.h
|
View
|
|
1 chunk |
+0 lines, -67 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/modules/webmidi/MIDIController.cpp
|
View
|
|
1 chunk |
+0 lines, -74 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/web/MIDIClientProxy.h
|
View
|
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/web/MIDIClientProxy.cpp
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp
|
View
|
|
1 chunk |
+0 lines, -69 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/web.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/blink_headers.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/WebFrameClient.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/web/modules/webmidi/OWNERS
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h
|
View
|
1
|
1 chunk |
+0 lines, -58 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
|
View
|
1
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/public/web/modules/webmidi/WebMIDIPermissionRequest.h
|
View
|
1
|
1 chunk |
+0 lines, -89 lines |
0 comments
|
Download
|
Total messages: 63 (24 generated)
|