| Index: third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| index 88b93d4315f26569d3d4a2e70289f7c918efd94f..479ac69ec7d8ae79b2fe1285058db997fd796b0c 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
|
| @@ -6,7 +6,7 @@
|
| #define PresentationReceiver_h
|
|
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| -#include "core/events/EventTarget.h"
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/frame/DOMWindowProperty.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/heap/Heap.h"
|
| @@ -16,22 +16,16 @@ namespace blink {
|
| // Implements the PresentationReceiver interface from the Presentation API from
|
| // which websites can implement the receiving side of a presentation session.
|
| class PresentationReceiver final
|
| - : public EventTargetWithInlineData
|
| - , DOMWindowProperty {
|
| + : public GarbageCollected<PresentationReceiver>
|
| + , public ScriptWrappable
|
| + , public DOMWindowProperty {
|
| USING_GARBAGE_COLLECTED_MIXIN(PresentationReceiver);
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - PresentationReceiver(LocalFrame*);
|
| + explicit PresentationReceiver(LocalFrame*);
|
| ~PresentationReceiver() = default;
|
|
|
| - // EventTarget implementation.
|
| - const AtomicString& interfaceName() const override;
|
| - ExecutionContext* getExecutionContext() const override;
|
| -
|
| - ScriptPromise getConnection(ScriptState*);
|
| - ScriptPromise getConnections(ScriptState*);
|
| -
|
| - DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
|
| + ScriptPromise connectionList(ScriptState*);
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
| };
|
|
|