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

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

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: fixed (most) tests 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/core/v8/custom/V8MojoWatcherCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
similarity index 50%
copy from third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp
copy to third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
index 25f583f867da6dad5b646ec67e8165c19984a337..5fe88912435ea16a6d29014053d7e8b0b8b01463 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8WebGLRenderingContextCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MojoWatcherCustom.cpp
@@ -2,21 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "bindings/modules/v8/V8WebGLRenderingContext.h"
+#include "bindings/core/v8/V8MojoWatcher.h"
-#include "modules/webgl/WebGLRenderingContextBase.h"
-
-using namespace WTF;
+#include "bindings/core/v8/MojoWatchCallback.h"
namespace blink {
-void V8WebGLRenderingContext::visitDOMWrapperCustom(
+void V8MojoWatcher::visitDOMWrapperCustom(
v8::Isolate* isolate,
ScriptWrappable* scriptWrappable,
const v8::Persistent<v8::Object>& wrapper) {
- WebGLRenderingContext* impl =
- scriptWrappable->toImpl<WebGLRenderingContext>();
- impl->visitChildDOMWrappers(isolate, wrapper);
+ MojoWatcher* watcher = scriptWrappable->toImpl<MojoWatcher>();
+ watcher->m_callback->setWrapperReference(isolate, wrapper);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698