| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestPrivateScriptInterface.h" | 8 #include "V8TestPrivateScriptInterface.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
| 10 #include "bindings/core/v8/V8Window.h" | 11 #include "bindings/core/v8/V8Window.h" |
| 11 #include "bindings/tests/v8/V8Document.h" | 12 #include "bindings/tests/v8/V8Document.h" |
| 12 #include "bindings/tests/v8/V8Node.h" | 13 #include "bindings/tests/v8/V8Node.h" |
| 13 #include "bindings/v8/PrivateScriptRunner.h" | |
| 14 #include "core/dom/ScriptForbiddenScope.h" | 14 #include "core/dom/ScriptForbiddenScope.h" |
| 15 #include "core/frame/LocalFrame.h" | 15 #include "core/frame/LocalFrame.h" |
| 16 | 16 |
| 17 namespace WebCore { | 17 namespace WebCore { |
| 18 | 18 |
| 19 bool V8TestPrivateScriptInterface::voidMethod(LocalFrame* frame) | 19 bool V8TestPrivateScriptInterface::voidMethod(LocalFrame* frame) |
| 20 { | 20 { |
| 21 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat
eScriptIsolatedWorld()); | 21 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::privat
eScriptIsolatedWorld()); |
| 22 if (context.IsEmpty()) | 22 if (context.IsEmpty()) |
| 23 return false; | 23 return false; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 return false; | 169 return false; |
| 170 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW
ithVariousArguments", "TestPrivateScriptInterface", scriptState->context()->Glob
al(), scriptState->isolate()); | 170 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW
ithVariousArguments", "TestPrivateScriptInterface", scriptState->context()->Glob
al(), scriptState->isolate()); |
| 171 Node* cppValue = V8Node::toNativeWithTypeCheck(scriptState->isolate(), v8Val
ue); | 171 Node* cppValue = V8Node::toNativeWithTypeCheck(scriptState->isolate(), v8Val
ue); |
| 172 if (block.HasCaught()) | 172 if (block.HasCaught()) |
| 173 return false; | 173 return false; |
| 174 *output = cppValue; | 174 *output = cppValue; |
| 175 return true; | 175 return true; |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace WebCore | 178 } // namespace WebCore |
| OLD | NEW |