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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 561633003: IDL: Enumerations support in dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase & style Created 6 years, 3 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 unified diff | Download patch
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 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 8146 matching lines...) Expand 10 before | Expand all | Expand 10 after
8157 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8157 TestObject* impl = V8TestObject::toImpl(info.Holder());
8158 V8StringResource<> stringArg; 8158 V8StringResource<> stringArg;
8159 { 8159 {
8160 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 8160 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
8161 } 8161 }
8162 impl->overloadedMethodJ(stringArg); 8162 impl->overloadedMethodJ(stringArg);
8163 } 8163 }
8164 8164
8165 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8165 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8166 { 8166 {
8167 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8167 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8168 TestObject* impl = V8TestObject::toImpl(info.Holder());
8168 TestDictionary* testDictionaryArg; 8169 TestDictionary* testDictionaryArg;
8169 { 8170 {
8170 v8::TryCatch block; 8171 v8::TryCatch block;
8171 V8RethrowTryCatchScope rethrow(block); 8172 V8RethrowTryCatchScope rethrow(block);
8172 if (!info[0]->IsUndefined()) { 8173 if (!info[0]->IsUndefined()) {
8173 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toImpl(i nfo.GetIsolate(), info[0])); 8174 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState);
8174 } else { 8175 } else {
8175 testDictionaryArg = TestDictionary::create(); 8176 testDictionaryArg = TestDictionary::create();
8176 } 8177 }
8177 } 8178 }
8178 impl->overloadedMethodJ(testDictionaryArg); 8179 impl->overloadedMethodJ(testDictionaryArg);
8179 } 8180 }
8180 8181
8181 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8182 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8182 { 8183 {
8183 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8184 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
(...skipping 3108 matching lines...) Expand 10 before | Expand all | Expand 10 after
11292 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); 11293 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue));
11293 if (block.HasCaught()) { 11294 if (block.HasCaught()) {
11294 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block); 11295 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block);
11295 block.ReThrow(); 11296 block.ReThrow();
11296 return false; 11297 return false;
11297 } 11298 }
11298 return true; 11299 return true;
11299 } 11300 }
11300 11301
11301 } // namespace blink 11302 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698