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 PresentationRequest_h | 5 #ifndef PresentationRequest_h |
6 #define PresentationRequest_h | 6 #define PresentationRequest_h |
7 | 7 |
8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 DEFINE_WRAPPERTYPEINFO(); | 25 DEFINE_WRAPPERTYPEINFO(); |
26 public: | 26 public: |
27 ~PresentationRequest() = default; | 27 ~PresentationRequest() = default; |
28 | 28 |
29 static PresentationRequest* create(ExecutionContext*, const String& url, Exc
eptionState&); | 29 static PresentationRequest* create(ExecutionContext*, const String& url, Exc
eptionState&); |
30 | 30 |
31 // EventTarget implementation. | 31 // EventTarget implementation. |
32 const AtomicString& interfaceName() const override; | 32 const AtomicString& interfaceName() const override; |
33 ExecutionContext* getExecutionContext() const override; | 33 ExecutionContext* getExecutionContext() const override; |
34 | 34 |
35 // ActiveScriptWrappable implementation. | 35 // ScriptWrappable implementation. |
36 bool hasPendingActivity() const final; | 36 bool hasPendingActivity() const final; |
37 | 37 |
38 ScriptPromise start(ScriptState*); | 38 ScriptPromise start(ScriptState*); |
39 ScriptPromise reconnect(ScriptState*, const String& id); | 39 ScriptPromise reconnect(ScriptState*, const String& id); |
40 ScriptPromise getAvailability(ScriptState*); | 40 ScriptPromise getAvailability(ScriptState*); |
41 | 41 |
42 const KURL& url() const; | 42 const KURL& url() const; |
43 | 43 |
44 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); | 44 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); |
45 | 45 |
46 DECLARE_VIRTUAL_TRACE(); | 46 DECLARE_VIRTUAL_TRACE(); |
47 | 47 |
48 protected: | 48 protected: |
49 // EventTarget implementation. | 49 // EventTarget implementation. |
50 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; | 50 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; |
51 | 51 |
52 private: | 52 private: |
53 PresentationRequest(ExecutionContext*, const KURL&); | 53 PresentationRequest(ExecutionContext*, const KURL&); |
54 | 54 |
55 KURL m_url; | 55 KURL m_url; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace blink | 58 } // namespace blink |
59 | 59 |
60 #endif // PresentationRequest_h | 60 #endif // PresentationRequest_h |
OLD | NEW |