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

Side by Side Diff: Source/core/html/HTMLMediaElement.idl

Issue 35803004: Remove TreatNullAs=NullString for media interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 /* 1 /*
2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 [ 26 [
27 RuntimeEnabled=Media, 27 RuntimeEnabled=Media,
28 ActiveDOMObject 28 ActiveDOMObject
29 ] interface HTMLMediaElement : HTMLElement { 29 ] interface HTMLMediaElement : HTMLElement {
30 30
31 // error state 31 // error state
32 readonly attribute MediaError error; 32 readonly attribute MediaError error;
33 33
34 // network state 34 // network state
35 [Reflect, TreatNullAs=NullString, URL] attribute DOMString src; 35 [Reflect, URL] attribute DOMString src;
36 [URL] readonly attribute DOMString currentSrc; 36 [URL] readonly attribute DOMString currentSrc;
37 37
38 const unsigned short NETWORK_EMPTY = 0; 38 const unsigned short NETWORK_EMPTY = 0;
39 const unsigned short NETWORK_IDLE = 1; 39 const unsigned short NETWORK_IDLE = 1;
40 const unsigned short NETWORK_LOADING = 2; 40 const unsigned short NETWORK_LOADING = 2;
41 const unsigned short NETWORK_NO_SOURCE = 3; 41 const unsigned short NETWORK_NO_SOURCE = 3;
42 readonly attribute unsigned short networkState; 42 readonly attribute unsigned short networkState;
43 attribute DOMString preload; 43 attribute DOMString preload;
44 44
45 readonly attribute TimeRanges buffered; 45 readonly attribute TimeRanges buffered;
(...skipping 19 matching lines...) Expand all
65 attribute double playbackRate; 65 attribute double playbackRate;
66 readonly attribute TimeRanges played; 66 readonly attribute TimeRanges played;
67 readonly attribute TimeRanges seekable; 67 readonly attribute TimeRanges seekable;
68 readonly attribute boolean ended; 68 readonly attribute boolean ended;
69 [Reflect] attribute boolean autoplay; 69 [Reflect] attribute boolean autoplay;
70 [Reflect] attribute boolean loop; 70 [Reflect] attribute boolean loop;
71 void play(); 71 void play();
72 void pause(); 72 void pause();
73 73
74 // media controller 74 // media controller
75 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; 75 [Reflect] attribute DOMString mediaGroup;
76 [CustomSetter] attribute MediaController controller; 76 [CustomSetter] attribute MediaController controller;
77 77
78 // controls 78 // controls
79 attribute boolean controls; 79 attribute boolean controls;
80 [SetterRaisesException] attribute double volume; 80 [SetterRaisesException] attribute double volume;
81 attribute boolean muted; 81 attribute boolean muted;
82 [Reflect=muted] attribute boolean defaultMuted; 82 [Reflect=muted] attribute boolean defaultMuted;
83 83
84 // tracks 84 // tracks
85 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks; 85 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks;
(...skipping 10 matching lines...) Expand all
96 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([ TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A rray key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId); 96 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([ TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A rray key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId);
97 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst em, [Default=NullString] optional DOMString sessionId); 97 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst em, [Default=NullString] optional DOMString sessionId);
98 98
99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded; 99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded;
100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror; 100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror;
101 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage; 101 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage;
102 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey; 102 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey;
103 103
104 [RuntimeEnabled=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Me diaKeys mediaKeys; 104 [RuntimeEnabled=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Me diaKeys mediaKeys;
105 }; 105 };
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/element-attribute-js-null-expected.txt ('k') | Source/core/html/HTMLSourceElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698