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

Side by Side Diff: Source/bindings/tests/results/core/UnionTypesCore.h

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor cleanup Created 5 years, 10 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 #ifndef UnionTypeCore_h 7 #ifndef UnionTypeCore_h
8 #define UnionTypeCore_h 8 #define UnionTypeCore_h
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 RefPtr<TestArrayBuffer> m_arrayBuffer; 59 RefPtr<TestArrayBuffer> m_arrayBuffer;
60 RefPtr<TestArrayBufferView> m_arrayBufferView; 60 RefPtr<TestArrayBufferView> m_arrayBufferView;
61 Dictionary m_dictionary; 61 Dictionary m_dictionary;
62 62
63 friend v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDiction ary&, v8::Local<v8::Object>, v8::Isolate*); 63 friend v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDiction ary&, v8::Local<v8::Object>, v8::Isolate*);
64 }; 64 };
65 65
66 class V8ArrayBufferOrArrayBufferViewOrDictionary final { 66 class V8ArrayBufferOrArrayBufferViewOrDictionary final {
67 public: 67 public:
68 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, ArrayBufferOrArrayBuf ferViewOrDictionary&, ExceptionState&); 68 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, ArrayBufferOrArrayBuf ferViewOrDictionary&, ExceptionState&);
69 }; 69 };
70 70
71 v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDictionary&, v8::L ocal<v8::Object>, v8::Isolate*); 71 v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDictionary&, v8::L ocal<v8::Object>, v8::Isolate*);
72 72
73 template <class CallbackInfo> 73 template <class CallbackInfo>
74 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, ArrayBufferOrArra yBufferViewOrDictionary& impl) 74 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, ArrayBufferOrArra yBufferViewOrDictionary& impl)
75 { 75 {
76 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 76 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
77 } 77 }
78 78
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 bool m_boolean; 114 bool m_boolean;
115 String m_string; 115 String m_string;
116 double m_unrestrictedDouble; 116 double m_unrestrictedDouble;
117 117
118 friend v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local<v8::Object>, v8::Isolate*); 118 friend v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local<v8::Object>, v8::Isolate*);
119 }; 119 };
120 120
121 class V8BooleanOrStringOrUnrestrictedDouble final { 121 class V8BooleanOrStringOrUnrestrictedDouble final {
122 public: 122 public:
123 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrStringOrUnre strictedDouble&, ExceptionState&); 123 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrStringOrUnre strictedDouble&, ExceptionState&);
124 }; 124 };
125 125
126 v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local< v8::Object>, v8::Isolate*); 126 v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local< v8::Object>, v8::Isolate*);
127 127
128 template <class CallbackInfo> 128 template <class CallbackInfo>
129 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrStringOr UnrestrictedDouble& impl) 129 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrStringOr UnrestrictedDouble& impl)
130 { 130 {
131 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 131 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
132 } 132 }
133 133
(...skipping 27 matching lines...) Expand all
161 SpecificTypes m_type; 161 SpecificTypes m_type;
162 162
163 double m_double; 163 double m_double;
164 String m_string; 164 String m_string;
165 165
166 friend v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object >, v8::Isolate*); 166 friend v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object >, v8::Isolate*);
167 }; 167 };
168 168
169 class V8DoubleOrString final { 169 class V8DoubleOrString final {
170 public: 170 public:
171 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, DoubleOrString&, Exce ptionState&); 171 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, DoubleOrString&, Exce ptionState&);
172 }; 172 };
173 173
174 v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object>, v8::Isol ate*); 174 v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object>, v8::Isol ate*);
175 175
176 template <class CallbackInfo> 176 template <class CallbackInfo>
177 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, DoubleOrString& i mpl) 177 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, DoubleOrString& i mpl)
178 { 178 {
179 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 179 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
180 } 180 }
181 181
(...skipping 29 matching lines...) Expand all
211 SpecificTypes m_type; 211 SpecificTypes m_type;
212 212
213 RefPtrWillBeMember<Node> m_node; 213 RefPtrWillBeMember<Node> m_node;
214 RefPtrWillBeMember<NodeList> m_nodeList; 214 RefPtrWillBeMember<NodeList> m_nodeList;
215 215
216 friend v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object >, v8::Isolate*); 216 friend v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object >, v8::Isolate*);
217 }; 217 };
218 218
219 class V8NodeOrNodeList final { 219 class V8NodeOrNodeList final {
220 public: 220 public:
221 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, NodeOrNodeList&, Exce ptionState&); 221 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, NodeOrNodeList&, Exce ptionState&);
222 }; 222 };
223 223
224 v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isol ate*); 224 v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isol ate*);
225 225
226 template <class CallbackInfo> 226 template <class CallbackInfo>
227 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NodeOrNodeList& i mpl) 227 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NodeOrNodeList& i mpl)
228 { 228 {
229 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 229 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
230 } 230 }
231 231
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 String m_string; 267 String m_string;
268 RefPtr<TestArrayBuffer> m_arrayBuffer; 268 RefPtr<TestArrayBuffer> m_arrayBuffer;
269 RefPtr<TestArrayBufferView> m_arrayBufferView; 269 RefPtr<TestArrayBufferView> m_arrayBufferView;
270 270
271 friend v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView& , v8::Local<v8::Object>, v8::Isolate*); 271 friend v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView& , v8::Local<v8::Object>, v8::Isolate*);
272 }; 272 };
273 273
274 class V8StringOrArrayBufferOrArrayBufferView final { 274 class V8StringOrArrayBufferOrArrayBufferView final {
275 public: 275 public:
276 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrArrayBufferOr ArrayBufferView&, ExceptionState&); 276 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrArrayBufferOr ArrayBufferView&, ExceptionState&);
277 }; 277 };
278 278
279 v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView&, v8::Local <v8::Object>, v8::Isolate*); 279 v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView&, v8::Local <v8::Object>, v8::Isolate*);
280 280
281 template <class CallbackInfo> 281 template <class CallbackInfo>
282 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrArrayBuff erOrArrayBufferView& impl) 282 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrArrayBuff erOrArrayBufferView& impl)
283 { 283 {
284 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 284 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
285 } 285 }
286 286
(...skipping 27 matching lines...) Expand all
314 SpecificTypes m_type; 314 SpecificTypes m_type;
315 315
316 String m_string; 316 String m_string;
317 double m_double; 317 double m_double;
318 318
319 friend v8::Local<v8::Value> toV8(const StringOrDouble&, v8::Local<v8::Object >, v8::Isolate*); 319 friend v8::Local<v8::Value> toV8(const StringOrDouble&, v8::Local<v8::Object >, v8::Isolate*);
320 }; 320 };
321 321
322 class V8StringOrDouble final { 322 class V8StringOrDouble final {
323 public: 323 public:
324 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrDouble&, Exce ptionState&); 324 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrDouble&, Exce ptionState&);
325 }; 325 };
326 326
327 v8::Local<v8::Value> toV8(const StringOrDouble&, v8::Local<v8::Object>, v8::Isol ate*); 327 v8::Local<v8::Value> toV8(const StringOrDouble&, v8::Local<v8::Object>, v8::Isol ate*);
328 328
329 template <class CallbackInfo> 329 template <class CallbackInfo>
330 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrDouble& i mpl) 330 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrDouble& i mpl)
331 { 331 {
332 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 332 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
333 } 333 }
334 334
(...skipping 27 matching lines...) Expand all
362 SpecificTypes m_type; 362 SpecificTypes m_type;
363 363
364 String m_string; 364 String m_string;
365 Vector<String> m_stringSequence; 365 Vector<String> m_stringSequence;
366 366
367 friend v8::Local<v8::Value> toV8(const StringOrStringSequence&, v8::Local<v8 ::Object>, v8::Isolate*); 367 friend v8::Local<v8::Value> toV8(const StringOrStringSequence&, v8::Local<v8 ::Object>, v8::Isolate*);
368 }; 368 };
369 369
370 class V8StringOrStringSequence final { 370 class V8StringOrStringSequence final {
371 public: 371 public:
372 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrStringSequenc e&, ExceptionState&); 372 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrStringSequenc e&, ExceptionState&);
373 }; 373 };
374 374
375 v8::Local<v8::Value> toV8(const StringOrStringSequence&, v8::Local<v8::Object>, v8::Isolate*); 375 v8::Local<v8::Value> toV8(const StringOrStringSequence&, v8::Local<v8::Object>, v8::Isolate*);
376 376
377 template <class CallbackInfo> 377 template <class CallbackInfo>
378 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrStringSeq uence& impl) 378 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, StringOrStringSeq uence& impl)
379 { 379 {
380 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 380 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
381 } 381 }
382 382
(...skipping 27 matching lines...) Expand all
410 SpecificTypes m_type; 410 SpecificTypes m_type;
411 411
412 String m_testEnum; 412 String m_testEnum;
413 double m_double; 413 double m_double;
414 414
415 friend v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Obje ct>, v8::Isolate*); 415 friend v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Obje ct>, v8::Isolate*);
416 }; 416 };
417 417
418 class V8TestEnumOrDouble final { 418 class V8TestEnumOrDouble final {
419 public: 419 public:
420 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestEnumOrDouble&, Ex ceptionState&); 420 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestEnumOrDouble&, Ex ceptionState&);
421 }; 421 };
422 422
423 v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Object>, v8::Is olate*); 423 v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Object>, v8::Is olate*);
424 424
425 template <class CallbackInfo> 425 template <class CallbackInfo>
426 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEnumOrDouble& impl) 426 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEnumOrDouble& impl)
427 { 427 {
428 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 428 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
429 } 429 }
430 430
(...skipping 27 matching lines...) Expand all
458 SpecificTypes m_type; 458 SpecificTypes m_type;
459 459
460 RefPtr<TestInterface2> m_testInterface2; 460 RefPtr<TestInterface2> m_testInterface2;
461 RefPtr<DOMUint8Array> m_uint8Array; 461 RefPtr<DOMUint8Array> m_uint8Array;
462 462
463 friend v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Loca l<v8::Object>, v8::Isolate*); 463 friend v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Loca l<v8::Object>, v8::Isolate*);
464 }; 464 };
465 465
466 class V8TestInterface2OrUint8Array final { 466 class V8TestInterface2OrUint8Array final {
467 public: 467 public:
468 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterface2OrUint8 Array&, ExceptionState&); 468 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterface2OrUint8 Array&, ExceptionState&);
469 }; 469 };
470 470
471 v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Local<v8::Objec t>, v8::Isolate*); 471 v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Local<v8::Objec t>, v8::Isolate*);
472 472
473 template <class CallbackInfo> 473 template <class CallbackInfo>
474 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface2OrU int8Array& impl) 474 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface2OrU int8Array& impl)
475 { 475 {
476 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 476 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
477 } 477 }
478 478
(...skipping 29 matching lines...) Expand all
508 SpecificTypes m_type; 508 SpecificTypes m_type;
509 509
510 Member<TestInterfaceGarbageCollected> m_testInterfaceGarbageCollected; 510 Member<TestInterfaceGarbageCollected> m_testInterfaceGarbageCollected;
511 String m_string; 511 String m_string;
512 512
513 friend v8::Local<v8::Value> toV8(const TestInterfaceGarbageCollectedOrString &, v8::Local<v8::Object>, v8::Isolate*); 513 friend v8::Local<v8::Value> toV8(const TestInterfaceGarbageCollectedOrString &, v8::Local<v8::Object>, v8::Isolate*);
514 }; 514 };
515 515
516 class V8TestInterfaceGarbageCollectedOrString final { 516 class V8TestInterfaceGarbageCollectedOrString final {
517 public: 517 public:
518 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceGarbageC ollectedOrString&, ExceptionState&); 518 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceGarbageC ollectedOrString&, ExceptionState&);
519 }; 519 };
520 520
521 v8::Local<v8::Value> toV8(const TestInterfaceGarbageCollectedOrString&, v8::Loca l<v8::Object>, v8::Isolate*); 521 v8::Local<v8::Value> toV8(const TestInterfaceGarbageCollectedOrString&, v8::Loca l<v8::Object>, v8::Isolate*);
522 522
523 template <class CallbackInfo> 523 template <class CallbackInfo>
524 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceGarb ageCollectedOrString& impl) 524 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceGarb ageCollectedOrString& impl)
525 { 525 {
526 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 526 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
527 } 527 }
528 528
(...skipping 27 matching lines...) Expand all
556 SpecificTypes m_type; 556 SpecificTypes m_type;
557 557
558 RefPtr<TestInterfaceImplementation> m_testInterface; 558 RefPtr<TestInterfaceImplementation> m_testInterface;
559 int m_long; 559 int m_long;
560 560
561 friend v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::O bject>, v8::Isolate*); 561 friend v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::O bject>, v8::Isolate*);
562 }; 562 };
563 563
564 class V8TestInterfaceOrLong final { 564 class V8TestInterfaceOrLong final {
565 public: 565 public:
566 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrLong&, ExceptionState&); 566 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrLong&, ExceptionState&);
567 }; 567 };
568 568
569 v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::Object>, v8: :Isolate*); 569 v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::Object>, v8: :Isolate*);
570 570
571 template <class CallbackInfo> 571 template <class CallbackInfo>
572 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrLo ng& impl) 572 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrLo ng& impl)
573 { 573 {
574 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 574 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
575 } 575 }
576 576
(...skipping 27 matching lines...) Expand all
604 SpecificTypes m_type; 604 SpecificTypes m_type;
605 605
606 RefPtr<TestInterfaceImplementation> m_testInterface; 606 RefPtr<TestInterfaceImplementation> m_testInterface;
607 RefPtr<TestInterfaceEmpty> m_testInterfaceEmpty; 607 RefPtr<TestInterfaceEmpty> m_testInterfaceEmpty;
608 608
609 friend v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v 8::Local<v8::Object>, v8::Isolate*); 609 friend v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v 8::Local<v8::Object>, v8::Isolate*);
610 }; 610 };
611 611
612 class V8TestInterfaceOrTestInterfaceEmpty final { 612 class V8TestInterfaceOrTestInterfaceEmpty final {
613 public: 613 public:
614 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrTestIn terfaceEmpty&, ExceptionState&); 614 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrTestIn terfaceEmpty&, ExceptionState&);
615 }; 615 };
616 616
617 v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8 ::Object>, v8::Isolate*); 617 v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8 ::Object>, v8::Isolate*);
618 618
619 template <class CallbackInfo> 619 template <class CallbackInfo>
620 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrTe stInterfaceEmpty& impl) 620 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrTe stInterfaceEmpty& impl)
621 { 621 {
622 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 622 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
623 } 623 }
624 624
(...skipping 29 matching lines...) Expand all
654 SpecificTypes m_type; 654 SpecificTypes m_type;
655 655
656 RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> m_testInterfaceWillB eGarbageCollected; 656 RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> m_testInterfaceWillB eGarbageCollected;
657 TestDictionary m_testDictionary; 657 TestDictionary m_testDictionary;
658 658
659 friend v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOr TestDictionary&, v8::Local<v8::Object>, v8::Isolate*); 659 friend v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOr TestDictionary&, v8::Local<v8::Object>, v8::Isolate*);
660 }; 660 };
661 661
662 class V8TestInterfaceWillBeGarbageCollectedOrTestDictionary final { 662 class V8TestInterfaceWillBeGarbageCollectedOrTestDictionary final {
663 public: 663 public:
664 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceWillBeGa rbageCollectedOrTestDictionary&, ExceptionState&); 664 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceWillBeGa rbageCollectedOrTestDictionary&, ExceptionState&);
665 }; 665 };
666 666
667 v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOrTestDiction ary&, v8::Local<v8::Object>, v8::Isolate*); 667 v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOrTestDiction ary&, v8::Local<v8::Object>, v8::Isolate*);
668 668
669 template <class CallbackInfo> 669 template <class CallbackInfo>
670 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceWill BeGarbageCollectedOrTestDictionary& impl) 670 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceWill BeGarbageCollectedOrTestDictionary& impl)
671 { 671 {
672 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 672 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
673 } 673 }
674 674
(...skipping 27 matching lines...) Expand all
702 SpecificTypes m_type; 702 SpecificTypes m_type;
703 703
704 double m_unrestrictedDouble; 704 double m_unrestrictedDouble;
705 String m_string; 705 String m_string;
706 706
707 friend v8::Local<v8::Value> toV8(const UnrestrictedDoubleOrString&, v8::Loca l<v8::Object>, v8::Isolate*); 707 friend v8::Local<v8::Value> toV8(const UnrestrictedDoubleOrString&, v8::Loca l<v8::Object>, v8::Isolate*);
708 }; 708 };
709 709
710 class V8UnrestrictedDoubleOrString final { 710 class V8UnrestrictedDoubleOrString final {
711 public: 711 public:
712 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, UnrestrictedDoubleOrS tring&, ExceptionState&); 712 static bool toImpl(v8::Isolate*, v8::Local<v8::Value>, UnrestrictedDoubleOrS tring&, ExceptionState&);
713 }; 713 };
714 714
715 v8::Local<v8::Value> toV8(const UnrestrictedDoubleOrString&, v8::Local<v8::Objec t>, v8::Isolate*); 715 v8::Local<v8::Value> toV8(const UnrestrictedDoubleOrString&, v8::Local<v8::Objec t>, v8::Isolate*);
716 716
717 template <class CallbackInfo> 717 template <class CallbackInfo>
718 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, UnrestrictedDoubl eOrString& impl) 718 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, UnrestrictedDoubl eOrString& impl)
719 { 719 {
720 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 720 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
721 } 721 }
722 722
723 template <> 723 template <>
724 struct NativeValueTraits<UnrestrictedDoubleOrString> { 724 struct NativeValueTraits<UnrestrictedDoubleOrString> {
725 static UnrestrictedDoubleOrString nativeValue(const v8::Local<v8::Value>&, v 8::Isolate*, ExceptionState&); 725 static UnrestrictedDoubleOrString nativeValue(const v8::Local<v8::Value>&, v 8::Isolate*, ExceptionState&);
726 }; 726 };
727 727
728 class V8DoubleOrStringOrNull final { 728 class V8DoubleOrStringOrNull final {
729 public: 729 public:
730 static void toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, Doubl eOrString& impl, ExceptionState& exceptionState) 730 static bool toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, Doubl eOrString& impl, ExceptionState& exceptionState)
731 { 731 {
732 if (isUndefinedOrNull(v8Value)) 732 if (isUndefinedOrNull(v8Value))
733 return; 733 return true;
734 V8DoubleOrString::toImpl(isolate, v8Value, impl, exceptionState); 734 return V8DoubleOrString::toImpl(isolate, v8Value, impl, exceptionState);
735 } 735 }
736 }; 736 };
737 737
738 } // namespace blink 738 } // namespace blink
739 739
740 #endif // UnionTypeCore_h 740 #endif // UnionTypeCore_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698