| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "bindings/core/v8/inspector/V8InjectedScriptHost.h" | 6 #include "bindings/core/v8/inspector/V8InjectedScriptHost.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/BindingSecurity.h" | 8 #include "bindings/core/v8/BindingSecurity.h" |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/ScriptValue.h" | 10 #include "bindings/core/v8/ScriptValue.h" |
| 11 #include "bindings/core/v8/V8AbstractEventListener.h" | 11 #include "bindings/core/v8/V8AbstractEventListener.h" |
| 12 #include "bindings/core/v8/V8Binding.h" | 12 #include "bindings/core/v8/V8Binding.h" |
| 13 #include "bindings/core/v8/V8DOMException.h" | 13 #include "bindings/core/v8/V8DOMException.h" |
| 14 #include "bindings/core/v8/V8DOMTokenList.h" | 14 #include "bindings/core/v8/V8DOMTokenList.h" |
| 15 #include "bindings/core/v8/V8Debugger.h" | |
| 16 #include "bindings/core/v8/V8Event.h" | 15 #include "bindings/core/v8/V8Event.h" |
| 17 #include "bindings/core/v8/V8EventTarget.h" | 16 #include "bindings/core/v8/V8EventTarget.h" |
| 18 #include "bindings/core/v8/V8HTMLAllCollection.h" | 17 #include "bindings/core/v8/V8HTMLAllCollection.h" |
| 19 #include "bindings/core/v8/V8HTMLCollection.h" | 18 #include "bindings/core/v8/V8HTMLCollection.h" |
| 20 #include "bindings/core/v8/V8Node.h" | 19 #include "bindings/core/v8/V8Node.h" |
| 21 #include "bindings/core/v8/V8NodeList.h" | 20 #include "bindings/core/v8/V8NodeList.h" |
| 22 #include "bindings/core/v8/V8ScriptRunner.h" | 21 #include "bindings/core/v8/V8ScriptRunner.h" |
| 23 #include "bindings/core/v8/inspector/InspectorWrapper.h" | 22 #include "bindings/core/v8/inspector/InspectorWrapper.h" |
| 24 #include "core/events/EventTarget.h" | 23 #include "core/events/EventTarget.h" |
| 25 #include "core/inspector/EventListenerInfo.h" | 24 #include "core/inspector/EventListenerInfo.h" |
| 26 #include "core/inspector/InjectedScript.h" | 25 #include "core/inspector/InjectedScript.h" |
| 27 #include "core/inspector/InjectedScriptHost.h" | 26 #include "core/inspector/InjectedScriptHost.h" |
| 28 #include "core/inspector/JavaScriptCallFrame.h" | 27 #include "core/inspector/JavaScriptCallFrame.h" |
| 28 #include "core/inspector/V8Debugger.h" |
| 29 #include "platform/JSONValues.h" | 29 #include "platform/JSONValues.h" |
| 30 #include "wtf/RefPtr.h" | 30 #include "wtf/RefPtr.h" |
| 31 #include "wtf/StdLibExtras.h" | 31 #include "wtf/StdLibExtras.h" |
| 32 #include <algorithm> | 32 #include <algorithm> |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 Node* InjectedScriptHost::scriptValueAsNode(ScriptState* scriptState, ScriptValu
e value) | 36 Node* InjectedScriptHost::scriptValueAsNode(ScriptState* scriptState, ScriptValu
e value) |
| 37 { | 37 { |
| 38 ScriptState::Scope scope(scriptState); | 38 ScriptState::Scope scope(scriptState); |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 { | 641 { |
| 642 return InjectedScriptHostWrapper::wrap(constructorTemplate, context, host); | 642 return InjectedScriptHostWrapper::wrap(constructorTemplate, context, host); |
| 643 } | 643 } |
| 644 | 644 |
| 645 InjectedScriptHost* V8InjectedScriptHost::unwrap(v8::Local<v8::Object> object) | 645 InjectedScriptHost* V8InjectedScriptHost::unwrap(v8::Local<v8::Object> object) |
| 646 { | 646 { |
| 647 return InjectedScriptHostWrapper::unwrap(object); | 647 return InjectedScriptHostWrapper::unwrap(object); |
| 648 } | 648 } |
| 649 | 649 |
| 650 } // namespace blink | 650 } // namespace blink |
| OLD | NEW |