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 PresentationAvailability_h | 5 #ifndef PresentationAvailability_h |
6 #define PresentationAvailability_h | 6 #define PresentationAvailability_h |
7 | 7 |
8 #include "core/dom/ActiveDOMObject.h" | 8 #include "core/dom/ActiveDOMObject.h" |
9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
10 #include "core/page/PageLifecycleObserver.h" | 10 #include "core/page/PageLifecycleObserver.h" |
(...skipping 18 matching lines...) Loading... |
29 , public WebPresentationAvailabilityObserver { | 29 , public WebPresentationAvailabilityObserver { |
30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationAvailability); | 30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationAvailability); |
31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationAvailability); | 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationAvailability); |
32 DEFINE_WRAPPERTYPEINFO(); | 32 DEFINE_WRAPPERTYPEINFO(); |
33 public: | 33 public: |
34 static PresentationAvailability* take(ScriptPromiseResolver*, const KURL&, b
ool); | 34 static PresentationAvailability* take(ScriptPromiseResolver*, const KURL&, b
ool); |
35 ~PresentationAvailability() override; | 35 ~PresentationAvailability() override; |
36 | 36 |
37 // EventTarget implementation. | 37 // EventTarget implementation. |
38 const AtomicString& interfaceName() const override; | 38 const AtomicString& interfaceName() const override; |
39 ExecutionContext* executionContext() const override; | 39 ExecutionContext* getExecutionContext() const override; |
40 | 40 |
41 // WebPresentationAvailabilityObserver implementation. | 41 // WebPresentationAvailabilityObserver implementation. |
42 void availabilityChanged(bool) override; | 42 void availabilityChanged(bool) override; |
43 const WebURL url() const override; | 43 const WebURL url() const override; |
44 | 44 |
45 // ActiveDOMObject implementation. | 45 // ActiveDOMObject implementation. |
46 bool hasPendingActivity() const override; | 46 bool hasPendingActivity() const override; |
47 void suspend() override; | 47 void suspend() override; |
48 void resume() override; | 48 void resume() override; |
49 void stop() override; | 49 void stop() override; |
(...skipping 28 matching lines...) Loading... |
78 void updateListening(); | 78 void updateListening(); |
79 | 79 |
80 const KURL m_url; | 80 const KURL m_url; |
81 bool m_value; | 81 bool m_value; |
82 State m_state; | 82 State m_state; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // PresentationAvailability_h | 87 #endif // PresentationAvailability_h |
OLD | NEW |