OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PresentationSession_h | 5 #ifndef PresentationSession_h |
6 #define PresentationSession_h | 6 #define PresentationSession_h |
7 | 7 |
8 #include "core/events/EventTarget.h" | 8 #include "core/events/EventTarget.h" |
9 #include "core/fileapi/Blob.h" | 9 #include "core/fileapi/Blob.h" |
10 #include "core/fileapi/FileError.h" | 10 #include "core/fileapi/FileError.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // For CallbackPromiseAdapter. | 35 // For CallbackPromiseAdapter. |
36 using WebType = OwnPtr<WebPresentationSessionClient>; | 36 using WebType = OwnPtr<WebPresentationSessionClient>; |
37 | 37 |
38 static PresentationSession* take(ScriptPromiseResolver*, PassOwnPtr<WebPrese
ntationSessionClient>, PresentationRequest*); | 38 static PresentationSession* take(ScriptPromiseResolver*, PassOwnPtr<WebPrese
ntationSessionClient>, PresentationRequest*); |
39 static PresentationSession* take(PresentationController*, PassOwnPtr<WebPres
entationSessionClient>, PresentationRequest*); | 39 static PresentationSession* take(PresentationController*, PassOwnPtr<WebPres
entationSessionClient>, PresentationRequest*); |
40 ~PresentationSession() override; | 40 ~PresentationSession() override; |
41 | 41 |
42 // EventTarget implementation. | 42 // EventTarget implementation. |
43 const AtomicString& interfaceName() const override; | 43 const AtomicString& interfaceName() const override; |
44 ExecutionContext* executionContext() const override; | 44 ExecutionContext* executionContext() const override; |
| 45 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, bool capture) override; |
45 | 46 |
46 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
47 | 48 |
48 const String id() const { return m_id; } | 49 const String id() const { return m_id; } |
49 const WTF::AtomicString& state() const; | 50 const WTF::AtomicString& state() const; |
50 | 51 |
51 void send(const String& message, ExceptionState&); | 52 void send(const String& message, ExceptionState&); |
52 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); | 53 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); |
53 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); | 54 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); |
54 void send(Blob*, ExceptionState&); | 55 void send(Blob*, ExceptionState&); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // For Blob data handling. | 120 // For Blob data handling. |
120 Member<BlobLoader> m_blobLoader; | 121 Member<BlobLoader> m_blobLoader; |
121 Deque<OwnPtr<Message>> m_messages; | 122 Deque<OwnPtr<Message>> m_messages; |
122 | 123 |
123 BinaryType m_binaryType; | 124 BinaryType m_binaryType; |
124 }; | 125 }; |
125 | 126 |
126 } // namespace blink | 127 } // namespace blink |
127 | 128 |
128 #endif // PresentationSession_h | 129 #endif // PresentationSession_h |
OLD | NEW |