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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h

Issue 2038573002: [Android, RemotePlayback] Make RemotePlayback classes ActiveScriptWrappable's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't observe execution context, just return the element's document. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
index 0458704dab21fea73bcfa3dfff6512fc2d51770e..fab21a0cea059d59ab9044705dda5d10ad9879bc 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
@@ -5,9 +5,9 @@
#ifndef RemotePlayback_h
#define RemotePlayback_h
+#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "core/events/EventTarget.h"
-#include "core/frame/DOMWindowProperty.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
#include "public/platform/modules/remoteplayback/WebRemotePlaybackState.h"
@@ -24,7 +24,7 @@ class ScriptPromiseResolver;
class RemotePlayback final
: public EventTargetWithInlineData
- , public DOMWindowProperty
+ , public ActiveScriptWrappable
, private WebRemotePlaybackClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(RemotePlayback);
@@ -40,6 +40,9 @@ public:
String state() const;
+ // ActiveScriptWrappable implementation.
+ bool hasPendingActivity() const final;
+
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698