Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationAvailability.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // WebPresentationAvailabilityObserver implementation. 45 // WebPresentationAvailabilityObserver implementation.
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() override; 55 void contextDestroyed(ExecutionContext*) override;
56 void contextDestroyed(Page*) override;
56 57
57 // PageVisibilityObserver implementation. 58 // PageVisibilityObserver implementation.
58 void pageVisibilityChanged() override; 59 void pageVisibilityChanged() override;
59 60
60 bool value() const; 61 bool value() const;
61 62
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
63 64
64 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
65 66
(...skipping 19 matching lines...) Expand all
85 void updateListening(); 86 void updateListening();
86 87
87 const KURL m_url; 88 const KURL m_url;
88 bool m_value; 89 bool m_value;
89 State m_state; 90 State m_state;
90 }; 91 };
91 92
92 } // namespace blink 93 } // namespace blink
93 94
94 #endif // PresentationAvailability_h 95 #endif // PresentationAvailability_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698