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 #ifndef BlobEvent_h | |
6 #define BlobEvent_h | |
7 | |
8 #include "modules/EventModules.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include "wtf/text/AtomicString.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class Blob; | |
15 | |
16 class MODULES_EXPORT BlobEvent final : public Event { | |
17 DEFINE_WRAPPERTYPEINFO(); | |
18 public: | |
19 virtual ~BlobEvent(); | |
20 | |
21 static PassRefPtrWillBeRawPtr<BlobEvent> create(); | |
Peter Beverloo
2015/07/29 16:54:22
nit: Given that they're trivial, you could inline
mcasas
2015/07/30 13:20:36
Done.
| |
22 static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bo ol canBubble, bool cancelable, Blob*); | |
23 | |
24 Blob* data() const { return m_blob.get(); } | |
25 | |
26 // Event | |
27 virtual const AtomicString& interfaceName() const override; | |
28 | |
29 DECLARE_VIRTUAL_TRACE(); | |
30 | |
31 private: | |
32 BlobEvent(); | |
33 BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob*); | |
34 | |
35 PersistentWillBeMember<Blob> m_blob; | |
36 }; | |
37 | |
38 } // namespace blink | |
39 | |
40 #endif // BlobEvent_h | |
OLD | NEW |