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

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

Issue 2589893002: [Blink>MediaSession] Use setActionCallback() instead of event listeners for media control actions (Closed)
Patch Set: fixed tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/modules/v8/custom/V8MediaSessionCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8MediaSessionCustom.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8MediaSessionCustom.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f0847df05c236893c9a22195c437ca98d30c4876
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8MediaSessionCustom.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/V8MediaSession.h"
+
+#include "bindings/core/v8/V8DOMWrapper.h"
+#include "modules/mediasession/MediaSession.h"
+
+namespace blink {
+
+void V8MediaSession::visitDOMWrapperCustom(
+ v8::Isolate* isolate,
+ ScriptWrappable* scriptWrappable,
+ const v8::Persistent<v8::Object>& wrapper) {
+ scriptWrappable->toImpl<MediaSession>()->setV8ReferencesForHandlers(isolate,
+ wrapper);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698