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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: fixes typo 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/core/v8/custom/V8MojoWatcherCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..5fe88912435ea16a6d29014053d7e8b0b8b01463
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
@@ -0,0 +1,19 @@
+// 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/core/v8/V8MojoWatcher.h"
+
+#include "bindings/core/v8/MojoWatchCallback.h"
+
+namespace blink {
+
+void V8MojoWatcher::visitDOMWrapperCustom(
+ v8::Isolate* isolate,
+ ScriptWrappable* scriptWrappable,
+ const v8::Persistent<v8::Object>& wrapper) {
+ MojoWatcher* watcher = scriptWrappable->toImpl<MojoWatcher>();
+ watcher->m_callback->setWrapperReference(isolate, wrapper);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698