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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.h

Issue 2610163006: MediaRecorder: support |timecode| and remove |m_ignoreMutedMedia|. (Closed)
Patch Set: Rebase video_capture_device_client.cc Created 3 years, 11 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 // 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 #ifndef BlobEvent_h 5 #ifndef BlobEvent_h
6 #define BlobEvent_h 6 #define BlobEvent_h
7 7
8 #include "core/dom/DOMHighResTimeStamp.h"
8 #include "core/fileapi/Blob.h" 9 #include "core/fileapi/Blob.h"
9 #include "modules/EventModules.h" 10 #include "modules/EventModules.h"
10 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
11 #include "wtf/text/AtomicString.h" 12 #include "wtf/text/AtomicString.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class Blob; 16 class Blob;
16 class BlobEventInit; 17 class BlobEventInit;
17 18
18 class MODULES_EXPORT BlobEvent final : public Event { 19 class MODULES_EXPORT BlobEvent final : public Event {
19 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
20 21
21 public: 22 public:
22 ~BlobEvent() override {} 23 ~BlobEvent() override {}
23 24
24 static BlobEvent* create(const AtomicString& type, 25 static BlobEvent* create(const AtomicString& type,
25 const BlobEventInit& initializer); 26 const BlobEventInit& initializer);
26 static BlobEvent* create(const AtomicString& type, Blob*); 27 static BlobEvent* create(const AtomicString& type, Blob*, double);
27 28
28 Blob* data() const { return m_blob.get(); } 29 Blob* data() const { return m_blob.get(); }
30 DOMHighResTimeStamp timecode() const { return m_timecode; }
29 31
30 // Event 32 // Event
31 const AtomicString& interfaceName() const final; 33 const AtomicString& interfaceName() const final;
32 34
33 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
34 36
35 private: 37 private:
36 BlobEvent(const AtomicString& type, const BlobEventInit& initializer); 38 BlobEvent(const AtomicString& type, const BlobEventInit& initializer);
37 BlobEvent(const AtomicString& type, Blob*); 39 BlobEvent(const AtomicString& type, Blob*, double);
38 40
39 Member<Blob> m_blob; 41 Member<Blob> m_blob;
42 DOMHighResTimeStamp m_timecode;
40 }; 43 };
41 44
42 } // namespace blink 45 } // namespace blink
43 46
44 #endif // BlobEvent_h 47 #endif // BlobEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698