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

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

Issue 970843002: IDL: Implement float/double correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 v8::Local<v8::Value> doubleOrNullMemberValue = v8Object->Get(v8String(isolat e, "doubleOrNullMember")); 73 v8::Local<v8::Value> doubleOrNullMemberValue = v8Object->Get(v8String(isolat e, "doubleOrNullMember"));
74 if (block.HasCaught()) { 74 if (block.HasCaught()) {
75 exceptionState.rethrowV8Exception(block.Exception()); 75 exceptionState.rethrowV8Exception(block.Exception());
76 return; 76 return;
77 } 77 }
78 if (doubleOrNullMemberValue.IsEmpty() || doubleOrNullMemberValue->IsUndefine d()) { 78 if (doubleOrNullMemberValue.IsEmpty() || doubleOrNullMemberValue->IsUndefine d()) {
79 // Do nothing. 79 // Do nothing.
80 } else if (doubleOrNullMemberValue->IsNull()) { 80 } else if (doubleOrNullMemberValue->IsNull()) {
81 impl.setDoubleOrNullMemberToNull(); 81 impl.setDoubleOrNullMemberToNull();
82 } else { 82 } else {
83 double doubleOrNullMember = toDouble(doubleOrNullMemberValue, exceptionS tate); 83 double doubleOrNullMember = toRestrictedDouble(doubleOrNullMemberValue, exceptionState);
84 if (exceptionState.hadException()) 84 if (exceptionState.hadException())
85 return; 85 return;
86 impl.setDoubleOrNullMember(doubleOrNullMember); 86 impl.setDoubleOrNullMember(doubleOrNullMember);
87 } 87 }
88 88
89 v8::Local<v8::Value> doubleOrStringMemberValue = v8Object->Get(v8String(isol ate, "doubleOrStringMember")); 89 v8::Local<v8::Value> doubleOrStringMemberValue = v8Object->Get(v8String(isol ate, "doubleOrStringMember"));
90 if (block.HasCaught()) { 90 if (block.HasCaught()) {
91 exceptionState.rethrowV8Exception(block.Exception()); 91 exceptionState.rethrowV8Exception(block.Exception());
92 return; 92 return;
93 } 93 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } 590 }
591 591
592 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) 592 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
593 { 593 {
594 TestDictionary impl; 594 TestDictionary impl;
595 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); 595 V8TestDictionary::toImpl(isolate, value, impl, exceptionState);
596 return impl; 596 return impl;
597 } 597 }
598 598
599 } // namespace blink 599 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698