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

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

Issue 2634713002: Remove PageVisibilityObserver contextDestroyed() notifications. (Closed)
Patch Set: prefer type aliases 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698