OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 RemotePlaybackAvailability_h | 5 #ifndef RemotePlaybackAvailability_h |
6 #define RemotePlaybackAvailability_h | 6 #define RemotePlaybackAvailability_h |
7 | 7 |
8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ~RemotePlaybackAvailability() override; | 28 ~RemotePlaybackAvailability() override; |
29 | 29 |
30 // EventTarget implementation. | 30 // EventTarget implementation. |
31 const AtomicString& interfaceName() const override; | 31 const AtomicString& interfaceName() const override; |
32 ExecutionContext* getExecutionContext() const override; | 32 ExecutionContext* getExecutionContext() const override; |
33 | 33 |
34 void availabilityChanged(bool); | 34 void availabilityChanged(bool); |
35 | 35 |
36 bool value() const; | 36 bool value() const; |
37 | 37 |
38 // ActiveScriptWrappable implementation. | 38 // ScriptWrappable implementation. |
39 bool hasPendingActivity() const final; | 39 bool hasPendingActivity() const final; |
40 | 40 |
41 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 41 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
42 | 42 |
43 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
44 | 44 |
45 private: | 45 private: |
46 RemotePlaybackAvailability(ExecutionContext*, bool); | 46 RemotePlaybackAvailability(ExecutionContext*, bool); |
47 | 47 |
48 bool m_value; | 48 bool m_value; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // RemotePlaybackAvailability_h | 53 #endif // RemotePlaybackAvailability_h |
OLD | NEW |