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

Side by Side Diff: third_party/WebKit/LayoutTests/webauth/idl.html

Issue 2702653002: Patch #1 of multiple. Add webauth .mojom and initial usage of makeCredential. (Closed)
Patch Set: Adding additional comments to mojom structs. Created 3 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src=../resources/testharness.js></script> 2 <script src=../resources/testharness.js></script>
3 <script src=../resources/testharnessreport.js></script> 3 <script src=../resources/testharnessreport.js></script>
4 <script src=../resources/WebIDLParser.js></script> 4 <script src=../resources/WebIDLParser.js></script>
5 <script src=../resources/idlharness.js></script> 5 <script src=../resources/idlharness.js></script>
6 <script type="text/plain" id="tested"> 6 <script type="text/plain" id="tested">
7 [SecureContext] 7 [SecureContext]
8 interface ScopedCredentialInfo { 8 interface ScopedCredentialInfo {
9 readonly attribute ArrayBuffer clientData; 9 readonly attribute ArrayBuffer clientData;
10 readonly attribute ArrayBuffer attestation; 10 readonly attribute ArrayBuffer attestation;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 [SecureContext] 63 [SecureContext]
64 interface ScopedCredential { 64 interface ScopedCredential {
65 readonly attribute ScopedCredentialType type; 65 readonly attribute ScopedCredentialType type;
66 readonly attribute ArrayBuffer id; 66 readonly attribute ArrayBuffer id;
67 }; 67 };
68 68
69 dictionary ScopedCredentialDescriptor { 69 dictionary ScopedCredentialDescriptor {
70 required ScopedCredentialType type; 70 required ScopedCredentialType type;
71 required BufferSource id; 71 required BufferSource id;
72 sequence < Transport > transports; 72 sequence <Transport> transports;
73 }; 73 };
74 74
75 enum Transport { 75 enum Transport {
76 "usb", 76 "usb",
77 "nfc", 77 "nfc",
78 "ble" 78 "ble"
79 }; 79 };
80 [SecureContext] 80 [SecureContext]
81 interface WebAuthentication { 81 interface WebAuthentication {
82 Promise < ScopedCredentialInfo > makeCredential ( 82 Promise <ScopedCredentialInfo> MakeCredential (
dcheng 2017/05/04 07:22:35 The webidl still should be makeCredential though.
kpaulhamus 2017/05/05 01:32:36 d'oh. Right. I'll undo the layouttest rebaselining
83 Account accountInformation, 83 Account accountInformation,
84 sequence < ScopedCredentialParameters > cryptoParameters, 84 sequence < ScopedCredentialParameters > cryptoParameters,
85 BufferSource attestationChallenge, 85 BufferSource attestationChallenge,
86 optional ScopedCredentialOptions options 86 optional ScopedCredentialOptions options
87 ); 87 );
88 88
89 Promise < AuthenticationAssertion > getAssertion ( 89 Promise <AuthenticationAssertion> GetAssertion (
90 BufferSource assertionChallenge, 90 BufferSource assertionChallenge,
91 optional AssertionOptions options 91 optional AssertionOptions options
92 ); 92 );
93 }; 93 };
94 </script> 94 </script>
95 <script> 95 <script>
96 (function() { 96 (function() {
97 "use strict"; 97 "use strict";
98 var idl_array = new IdlArray(); 98 var idl_array = new IdlArray();
99 idl_array.add_idls(document.querySelector('#tested').textContent); 99 idl_array.add_idls(document.querySelector('#tested').textContent);
100 idl_array.add_objects({ 100 idl_array.add_objects({
101 WebAuthentication: ['navigator.authentication'] 101 WebAuthentication: ['navigator.authentication']
102 }); 102 });
103 idl_array.test(); 103 idl_array.test();
104 })(); 104 })();
105 </script> 105 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698