Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: content/test/data/android/media_permissions.html

Issue 2254763002: Enable the optional permission prompt persistence toggle on grouped infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-infobardelegate-clean
Patch Set: DCHECK -> CHECK Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/android/infobars/grouped_permission_infobar.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Media</title>
5 <script>
6 var micCount = 0;
7 var cameraCount = 0;
8 var combinedCount = 0;
9 function gotMicrophone(stream) {
10 micCount++;
11 window.document.title = 'Mic count:' + micCount;
12 }
13 function gotCamera(stream) {
14 cameraCount++;
15 window.document.title = 'Camera count:' + cameraCount;
16 }
17 function gotCombined(stream) {
18 combinedCount++;
19 window.document.title = 'Combined count:' + combinedCount;
20 }
21 function errorCallback(error){
22 window.document.title = 'deny';
23 console.log('navigator.getUserMedia error: ', error);
24 }
25 function initiate_getMicrophone() {
26 navigator.webkitGetUserMedia(
27 {audio : true}, gotMicrophone, errorCallback);
28 }
29 function initiate_getCamera() {
30 navigator.webkitGetUserMedia(
31 {video : true}, gotCamera, errorCallback);
32 }
33 function initiate_getCombined() {
34 navigator.webkitGetUserMedia(
35 {video : true, audio: true}, gotCombined, errorCallback);
36 }
37 </script>
38 </head>
39 <body>
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/grouped_permission_infobar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698