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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.idl

Issue 1476153002: Drop [LegacyInterfaceTypeChecking] for APIs that are not enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix contextmenu test Created 5 years 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderAPI 5 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderAPI
6 6
7 enum RecordingStateEnum { "inactive", "recording", "paused" }; 7 enum RecordingStateEnum { "inactive", "recording", "paused" };
8 8
9 [ 9 [
10 GarbageCollected, 10 GarbageCollected,
11 ActiveDOMObject, 11 ActiveDOMObject,
12 // TODO(mcasas): consider changing |mimeType| to a dictionary with said key, see https://github.com/w3c/mediacapture-record/issues/19 12 // TODO(mcasas): consider changing |mimeType| to a dictionary with said key, see https://github.com/w3c/mediacapture-record/issues/19
13 // TODO(mcasas): Remove [TreatUndefinedAs], see https://github.com/w3c/media capture-record/issues/7 13 // TODO(mcasas): Remove [TreatUndefinedAs], see https://github.com/w3c/media capture-record/issues/7
14 Constructor(MediaStream stream, [TreatUndefinedAs=Missing] optional DOMStrin g mimeType), 14 Constructor(MediaStream stream, [TreatUndefinedAs=Missing] optional DOMStrin g mimeType),
15 ConstructorCallWith=ExecutionContext, 15 ConstructorCallWith=ExecutionContext,
16 RaisesException=Constructor, 16 RaisesException=Constructor,
17 RuntimeEnabled=MediaRecorder, 17 RuntimeEnabled=MediaRecorder,
18 LegacyInterfaceTypeChecking,
19 ] interface MediaRecorder : EventTarget { 18 ] interface MediaRecorder : EventTarget {
20 readonly attribute MediaStream stream; 19 readonly attribute MediaStream stream;
21 readonly attribute DOMString mimeType; 20 readonly attribute DOMString mimeType;
22 readonly attribute RecordingStateEnum state; 21 readonly attribute RecordingStateEnum state;
23 attribute boolean ignoreMutedMedia; 22 attribute boolean ignoreMutedMedia;
24 23
25 attribute EventHandler onstart; 24 attribute EventHandler onstart;
26 attribute EventHandler onstop; 25 attribute EventHandler onstop;
27 attribute EventHandler ondataavailable; 26 attribute EventHandler ondataavailable;
28 attribute EventHandler onpause; 27 attribute EventHandler onpause;
29 attribute EventHandler onresume; 28 attribute EventHandler onresume;
30 attribute EventHandler onerror; 29 attribute EventHandler onerror;
31 30
32 [RaisesException] void start(optional long timeslice); 31 [RaisesException] void start(optional long timeslice);
33 [RaisesException] void stop(); 32 [RaisesException] void stop();
34 [RaisesException] void pause(); 33 [RaisesException] void pause();
35 [RaisesException] void resume(); 34 [RaisesException] void resume();
36 [RaisesException] void requestData(); 35 [RaisesException] void requestData();
37 36
38 static DOMString canRecordMimeType(DOMString mimeType); 37 static DOMString canRecordMimeType(DOMString mimeType);
39 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698