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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/custom/V8RemotePlaybackCustom.cpp

Issue 2415723002: [Blink, RemotePlayback] watchAvailability() implementation. (Closed)
Patch Set: Added layout test for callback gc Created 4 years, 2 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
Index: third_party/WebKit/Source/bindings/modules/v8/custom/V8RemotePlaybackCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8RemotePlaybackCustom.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8RemotePlaybackCustom.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..cb1c199487056d967104ed613644a1ce557668e2
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8RemotePlaybackCustom.cpp
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "bindings/modules/v8/V8RemotePlayback.h"
+
+#include "bindings/core/v8/V8DOMWrapper.h"
+#include "modules/remoteplayback/RemotePlayback.h"
+
+namespace blink {
+
+void V8RemotePlayback::visitDOMWrapperCustom(
+ v8::Isolate* isolate,
+ ScriptWrappable* scriptWrappable,
+ const v8::Persistent<v8::Object>& wrapper) {
+ RemotePlayback* remotePlayback = scriptWrappable->toImpl<RemotePlayback>();
+ remotePlayback->setV8ReferencesForCallbacks(isolate, wrapper);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698