OLD | NEW |
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 | 5 |
6 #include "modules/mediarecorder/BlobEvent.h" | 6 #include "modules/mediarecorder/BlobEvent.h" |
7 | 7 |
8 #include "modules/mediarecorder/BlobEventInit.h" | 8 #include "modules/mediarecorder/BlobEventInit.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // static | 12 // static |
13 BlobEvent* BlobEvent::create() | |
14 { | |
15 return new BlobEvent; | |
16 } | |
17 | |
18 // static | |
19 BlobEvent* BlobEvent::create(const AtomicString& type, const BlobEventInit& init
ializer) | 13 BlobEvent* BlobEvent::create(const AtomicString& type, const BlobEventInit& init
ializer) |
20 { | 14 { |
21 return new BlobEvent(type, initializer); | 15 return new BlobEvent(type, initializer); |
22 } | 16 } |
23 | 17 |
24 // static | 18 // static |
25 BlobEvent* BlobEvent::create(const AtomicString& type, Blob* blob) | 19 BlobEvent* BlobEvent::create(const AtomicString& type, Blob* blob) |
26 { | 20 { |
27 return new BlobEvent(type, blob); | 21 return new BlobEvent(type, blob); |
28 } | 22 } |
(...skipping 15 matching lines...) Expand all Loading... |
44 { | 38 { |
45 } | 39 } |
46 | 40 |
47 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob) | 41 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob) |
48 : Event(type, false /* canBubble */, false /* cancelable */) | 42 : Event(type, false /* canBubble */, false /* cancelable */) |
49 , m_blob(blob) | 43 , m_blob(blob) |
50 { | 44 { |
51 } | 45 } |
52 | 46 |
53 } // namespace blink | 47 } // namespace blink |
OLD | NEW |