OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "modules/mediastream/BlobEvent.h" |
| 7 |
| 8 #include "core/fileapi/Blob.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 PassRefPtrWillBeRawPtr<BlobEvent> BlobEvent::create() |
| 13 { |
| 14 return adoptRefWillBeNoop(new BlobEvent); |
| 15 } |
| 16 |
| 17 PassRefPtrWillBeRawPtr<BlobEvent> BlobEvent::create(const AtomicString& type, bo
ol canBubble, bool cancelable, Blob* blob) |
| 18 { |
| 19 return adoptRefWillBeNoop(new BlobEvent(type, canBubble, cancelable, blob)); |
| 20 } |
| 21 |
| 22 BlobEvent::BlobEvent() |
| 23 { |
| 24 } |
| 25 |
| 26 BlobEvent::BlobEvent(const AtomicString& type, bool canBubble, bool cancelable,
Blob* blob) |
| 27 : Event(type, canBubble, cancelable) |
| 28 , m_blob(blob) |
| 29 { |
| 30 } |
| 31 |
| 32 BlobEvent::~BlobEvent() |
| 33 { |
| 34 } |
| 35 |
| 36 const AtomicString& BlobEvent::interfaceName() const |
| 37 { |
| 38 return EventNames::BlobEvent; |
| 39 } |
| 40 |
| 41 DEFINE_TRACE(BlobEvent) |
| 42 { |
| 43 visitor->trace(m_blob); |
| 44 Event::trace(visitor); |
| 45 } |
| 46 |
| 47 } // namespace blink |
OLD | NEW |