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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.idl

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more Created 3 years, 10 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 20 matching lines...) Expand all
31 Constructor(sequence<MediaStreamTrack> tracks), 31 Constructor(sequence<MediaStreamTrack> tracks),
32 ConstructorCallWith=ExecutionContext, 32 ConstructorCallWith=ExecutionContext,
33 ] interface MediaStream : EventTarget { 33 ] interface MediaStream : EventTarget {
34 readonly attribute DOMString id; 34 readonly attribute DOMString id;
35 sequence<MediaStreamTrack> getAudioTracks(); 35 sequence<MediaStreamTrack> getAudioTracks();
36 sequence<MediaStreamTrack> getVideoTracks(); 36 sequence<MediaStreamTrack> getVideoTracks();
37 sequence<MediaStreamTrack> getTracks(); 37 sequence<MediaStreamTrack> getTracks();
38 MediaStreamTrack? getTrackById(DOMString trackId); 38 MediaStreamTrack? getTrackById(DOMString trackId);
39 [RaisesException] void addTrack(MediaStreamTrack track); 39 [RaisesException] void addTrack(MediaStreamTrack track);
40 [RaisesException] void removeTrack(MediaStreamTrack track); 40 [RaisesException] void removeTrack(MediaStreamTrack track);
41 [CallWith=ExecutionContext] MediaStream clone(); 41 [CallWith=ScriptState] MediaStream clone();
42 [Measure] readonly attribute boolean active; 42 [Measure] readonly attribute boolean active;
43 attribute EventHandler onaddtrack; 43 attribute EventHandler onaddtrack;
44 attribute EventHandler onremovetrack; 44 attribute EventHandler onremovetrack;
45 45
46 // TODO(guidou): Remove the active and inactive events on MediaStream. 46 // TODO(guidou): Remove the active and inactive events on MediaStream.
47 // https://crbug.com/649328 47 // https://crbug.com/649328
48 attribute EventHandler onactive; 48 attribute EventHandler onactive;
49 attribute EventHandler oninactive; 49 attribute EventHandler oninactive;
50 }; 50 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698