Chromium Code Reviews| 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..9ced9cc58130d12b24ac4c47b45b92346c3742ef 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*); |
|
haraken
2016/08/23 00:03:48
Add explicit.
|
| ~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(); |
| }; |