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

Side by Side Diff: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.idl

Issue 212643002: Use [StrictTypeChecking] for HTMLMediaElement.setMediaKeys (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullable Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt ('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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 partial interface HTMLMediaElement { 5 partial interface HTMLMediaElement {
6 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaGenerateKeyRequest] void webkitGenerateKeyRequest([TreatNullAs=NullString, T reatUndefinedAs=NullString] DOMString keySystem, optional Uint8Array initData); 6 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaGenerateKeyRequest] void webkitGenerateKeyRequest([TreatNullAs=NullString, T reatUndefinedAs=NullString] DOMString keySystem, optional Uint8Array initData);
7 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaAddKey] void webkitAddKey([TreatNullAs=NullString, TreatUndefinedAs=NullStri ng] DOMString keySystem, Uint8Array key, optional Uint8Array initData, [Default= NullString] optional DOMString sessionId); 7 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaAddKey] void webkitAddKey([TreatNullAs=NullString, TreatUndefinedAs=NullStri ng] DOMString keySystem, Uint8Array key, optional Uint8Array initData, [Default= NullString] optional DOMString sessionId);
8 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaCancelKeyRequest] void webkitCancelKeyRequest([TreatNullAs=NullString, Treat UndefinedAs=NullString] DOMString keySystem, [Default=NullString] optional DOMSt ring sessionId); 8 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException, MeasureAs=PrefixedM ediaCancelKeyRequest] void webkitCancelKeyRequest([TreatNullAs=NullString, Treat UndefinedAs=NullString] DOMString keySystem, [Default=NullString] optional DOMSt ring sessionId);
9 9
10 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded; 10 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded;
11 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror; 11 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror;
12 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage; 12 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage;
13 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey; 13 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey;
14 14
15 [RuntimeEnabled=EncryptedMedia] readonly attribute MediaKeys mediaKeys; 15 [RuntimeEnabled=EncryptedMedia] readonly attribute MediaKeys mediaKeys;
16 [RuntimeEnabled=EncryptedMedia, RaisesException] void setMediaKeys(MediaKeys mediaKeys); 16 [RuntimeEnabled=EncryptedMedia, RaisesException, StrictTypeChecking] void se tMediaKeys(MediaKeys? mediaKeys);
17 [RuntimeEnabled=EncryptedMedia] attribute EventHandler onneedkey; 17 [RuntimeEnabled=EncryptedMedia] attribute EventHandler onneedkey;
18 }; 18 };
OLDNEW
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698