| 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 #ifndef BlobEvent_h | 5 #ifndef BlobEvent_h |
| 6 #define BlobEvent_h | 6 #define BlobEvent_h |
| 7 | 7 |
| 8 #include "core/fileapi/Blob.h" | 8 #include "core/fileapi/Blob.h" |
| 9 #include "modules/EventModules.h" | 9 #include "modules/EventModules.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 #include "wtf/text/AtomicString.h" | 11 #include "wtf/text/AtomicString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Blob; | 15 class Blob; |
| 16 class BlobEventInit; | 16 class BlobEventInit; |
| 17 | 17 |
| 18 class MODULES_EXPORT BlobEvent final : public Event { | 18 class MODULES_EXPORT BlobEvent final : public Event { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 public: | 20 public: |
| 21 ~BlobEvent() override {} | 21 ~BlobEvent() override {} |
| 22 | 22 |
| 23 static BlobEvent* create(); | |
| 24 static BlobEvent* create(const AtomicString& type, const BlobEventInit& init
ializer); | 23 static BlobEvent* create(const AtomicString& type, const BlobEventInit& init
ializer); |
| 25 static BlobEvent* create(const AtomicString& type, Blob*); | 24 static BlobEvent* create(const AtomicString& type, Blob*); |
| 26 | 25 |
| 27 Blob* data() const { return m_blob.get(); } | 26 Blob* data() const { return m_blob.get(); } |
| 28 | 27 |
| 29 // Event | 28 // Event |
| 30 const AtomicString& interfaceName() const final; | 29 const AtomicString& interfaceName() const final; |
| 31 | 30 |
| 32 DECLARE_VIRTUAL_TRACE(); | 31 DECLARE_VIRTUAL_TRACE(); |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 BlobEvent() {} | |
| 36 BlobEvent(const AtomicString& type, const BlobEventInit& initializer); | 34 BlobEvent(const AtomicString& type, const BlobEventInit& initializer); |
| 37 BlobEvent(const AtomicString& type, Blob*); | 35 BlobEvent(const AtomicString& type, Blob*); |
| 38 | 36 |
| 39 Member<Blob> m_blob; | 37 Member<Blob> m_blob; |
| 40 }; | 38 }; |
| 41 | 39 |
| 42 } // namespace blink | 40 } // namespace blink |
| 43 | 41 |
| 44 #endif // BlobEvent_h | 42 #endif // BlobEvent_h |
| OLD | NEW |