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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 819853002: [bindings] Translate all assignments in bindings/templates to use Local<> in place of Handle<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterfacePartial.h" 9 #include "V8TestInterfacePartial.h"
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 { 257 {
258 V8TestInterface::installConditionallyEnabledMethods(prototypeObject, isolate ); 258 V8TestInterface::installConditionallyEnabledMethods(prototypeObject, isolate );
259 } 259 }
260 260
261 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result) 261 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result)
262 { 262 {
263 if (!frame) 263 if (!frame)
264 return false; 264 return false;
265 v8::HandleScope handleScope(toIsolate(frame)); 265 v8::HandleScope handleScope(toIsolate(frame));
266 ScriptForbiddenScope::AllowUserAgentScript script; 266 ScriptForbiddenScope::AllowUserAgentScript script;
267 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 267 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
268 if (contextInPrivateScript.IsEmpty()) 268 if (contextInPrivateScript.IsEmpty())
269 return false; 269 return false;
270 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 270 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
271 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 271 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
272 if (!scriptState->executionContext()) 272 if (!scriptState->executionContext())
273 return false; 273 return false;
274 274
275 ScriptState::Scope scope(scriptState); 275 ScriptState::Scope scope(scriptState);
276 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 276 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
277 277
278 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value); 278 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
279 v8::Handle<v8::Value> argv[] = { valueHandle }; 279 v8::Local<v8::Value> argv[] = { valueHandle };
280 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate()); 280 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate());
281 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShort ArgumentImplementedInPrivateScript", holder, 1, argv); 281 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortA rgumentImplementedInPrivateScript", holder, 1, argv);
282 if (v8Value.IsEmpty()) 282 if (v8Value.IsEmpty())
283 return false; 283 return false;
284 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 284 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
285 *result = cppValue; 285 *result = cppValue;
286 RELEASE_ASSERT(!exceptionState.hadException()); 286 RELEASE_ASSERT(!exceptionState.hadException());
287 return true; 287 return true;
288 } 288 }
289 289
290 void V8TestInterfacePartial::initialize() 290 void V8TestInterfacePartial::initialize()
291 { 291 {
292 // Should be invoked from initModules. 292 // Should be invoked from initModules.
293 V8TestInterface::updateWrapperTypeInfo( 293 V8TestInterface::updateWrapperTypeInfo(
294 &V8TestInterfacePartial::installV8TestInterfaceTemplate, 294 &V8TestInterfacePartial::installV8TestInterfaceTemplate,
295 &V8TestInterfacePartial::installConditionallyEnabledMethods); 295 &V8TestInterfacePartial::installConditionallyEnabledMethods);
296 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 296 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
297 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 297 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
298 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 298 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
299 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 299 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
300 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 300 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
301 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 301 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
302 } 302 }
303 303
304 } // namespace blink 304 } // namespace blink
305 #endif // ENABLE(CONDITION) 305 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698