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

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

Issue 832503002: [bindings] Eliminate remaining traces of Handle<> from the generated binding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 "V8TestDictionary.h" 8 #include "V8TestDictionary.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 372 }
373 373
374 v8::Local<v8::Value> uint8ArrayMemberValue = v8Object->Get(v8String(isolate, "uint8ArrayMember")); 374 v8::Local<v8::Value> uint8ArrayMemberValue = v8Object->Get(v8String(isolate, "uint8ArrayMember"));
375 if (block.HasCaught()) { 375 if (block.HasCaught()) {
376 exceptionState.rethrowV8Exception(block.Exception()); 376 exceptionState.rethrowV8Exception(block.Exception());
377 return; 377 return;
378 } 378 }
379 if (uint8ArrayMemberValue.IsEmpty() || uint8ArrayMemberValue->IsUndefined()) { 379 if (uint8ArrayMemberValue.IsEmpty() || uint8ArrayMemberValue->IsUndefined()) {
380 // Do nothing. 380 // Do nothing.
381 } else { 381 } else {
382 DOMUint8Array* uint8ArrayMember = uint8ArrayMemberValue->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handle<v8::Uint8Array>::Cast(uint8ArrayMemberValue)) : 0; 382 DOMUint8Array* uint8ArrayMember = uint8ArrayMemberValue->IsUint8Array() ? V8Uint8Array::toImpl(v8::Local<v8::Uint8Array>::Cast(uint8ArrayMemberValue)) : 0;
383 if (!uint8ArrayMember && !uint8ArrayMemberValue->IsNull()) { 383 if (!uint8ArrayMember && !uint8ArrayMemberValue->IsNull()) {
384 exceptionState.throwTypeError("member uint8ArrayMember is not of typ e Uint8Array."); 384 exceptionState.throwTypeError("member uint8ArrayMember is not of typ e Uint8Array.");
385 return; 385 return;
386 } 386 }
387 impl.setUint8ArrayMember(uint8ArrayMember); 387 impl.setUint8ArrayMember(uint8ArrayMember);
388 } 388 }
389 389
390 } 390 }
391 391
392 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea tionContext, v8::Isolate* isolate) 392 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea tionContext, v8::Isolate* isolate)
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } 507 }
508 508
509 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) 509 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
510 { 510 {
511 TestDictionary impl; 511 TestDictionary impl;
512 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); 512 V8TestDictionary::toImpl(isolate, value, impl, exceptionState);
513 return impl; 513 return impl;
514 } 514 }
515 515
516 } // namespace blink 516 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/tests/results/core/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698