| Index: third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.cpp b/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.cpp
|
| deleted file mode 100644
|
| index 71e07c22380296ea54a16b1e9c30593ee0395f7a..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.cpp
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// Copyright 2017 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/ToV8ForCore.h"
|
| -
|
| -#include "bindings/core/v8/WindowProxy.h"
|
| -#include "core/events/EventTarget.h"
|
| -#include "core/frame/DOMWindow.h"
|
| -#include "core/frame/Frame.h"
|
| -
|
| -namespace blink {
|
| -
|
| -v8::Local<v8::Value> ToV8(DOMWindow* window,
|
| - v8::Local<v8::Object> creation_context,
|
| - v8::Isolate* isolate) {
|
| - // Notice that we explicitly ignore creationContext because the DOMWindow
|
| - // has its own creationContext.
|
| -
|
| - if (UNLIKELY(!window))
|
| - return v8::Null(isolate);
|
| -
|
| - return window->GlobalProxy(DOMWrapperWorld::Current(isolate));
|
| -}
|
| -
|
| -v8::Local<v8::Value> ToV8(EventTarget* impl,
|
| - v8::Local<v8::Object> creation_context,
|
| - v8::Isolate* isolate) {
|
| - if (UNLIKELY(!impl))
|
| - return v8::Null(isolate);
|
| -
|
| - if (impl->InterfaceName() == EventTargetNames::DOMWindow)
|
| - return ToV8(static_cast<DOMWindow*>(impl), creation_context, isolate);
|
| - return ToV8(static_cast<ScriptWrappable*>(impl), creation_context, isolate);
|
| -}
|
| -
|
| -} // namespace blink
|
|
|