| 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 "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "core/dom/SuspendableObject.h" | 9 #include "core/dom/SuspendableObject.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void availabilityChanged(bool) override; | 46 void availabilityChanged(bool) override; |
| 47 const WebURL url() const override; | 47 const WebURL url() const override; |
| 48 | 48 |
| 49 // ScriptWrappable implementation. | 49 // ScriptWrappable implementation. |
| 50 bool hasPendingActivity() const final; | 50 bool hasPendingActivity() const final; |
| 51 | 51 |
| 52 // SuspendableObject implementation. | 52 // SuspendableObject implementation. |
| 53 void suspend() override; | 53 void suspend() override; |
| 54 void resume() override; | 54 void resume() override; |
| 55 void contextDestroyed(ExecutionContext*) override; | 55 void contextDestroyed(ExecutionContext*) override; |
| 56 void contextDestroyed(Page*) override; | |
| 57 | 56 |
| 58 // PageVisibilityObserver implementation. | 57 // PageVisibilityObserver implementation. |
| 59 void pageVisibilityChanged() override; | 58 void pageVisibilityChanged() override; |
| 60 | 59 |
| 61 bool value() const; | 60 bool value() const; |
| 62 | 61 |
| 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
| 64 | 63 |
| 65 DECLARE_VIRTUAL_TRACE(); | 64 DECLARE_VIRTUAL_TRACE(); |
| 66 | 65 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 void updateListening(); | 85 void updateListening(); |
| 87 | 86 |
| 88 const KURL m_url; | 87 const KURL m_url; |
| 89 bool m_value; | 88 bool m_value; |
| 90 State m_state; | 89 State m_state; |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 } // namespace blink | 92 } // namespace blink |
| 94 | 93 |
| 95 #endif // PresentationAvailability_h | 94 #endif // PresentationAvailability_h |
| OLD | NEW |