| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 class TestInterfaceGarbageCollected; | 26 class TestInterfaceGarbageCollected; |
| 27 class TestInterfaceImplementation; | 27 class TestInterfaceImplementation; |
| 28 | 28 |
| 29 class CORE_EXPORT ArrayBufferOrArrayBufferViewOrDictionary final { | 29 class CORE_EXPORT ArrayBufferOrArrayBufferViewOrDictionary final { |
| 30 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 30 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 31 public: | 31 public: |
| 32 ArrayBufferOrArrayBufferViewOrDictionary(); | 32 ArrayBufferOrArrayBufferViewOrDictionary(); |
| 33 bool isNull() const { return m_type == SpecificTypeNone; } | 33 bool isNull() const { return m_type == SpecificTypeNone; } |
| 34 | 34 |
| 35 bool isArrayBuffer() const { return m_type == SpecificTypeArrayBuffer; } | 35 bool isArrayBuffer() const { return m_type == SpecificTypeArrayBuffer; } |
| 36 PassRefPtr<TestArrayBuffer> getAsArrayBuffer() const; | 36 TestArrayBuffer* getAsArrayBuffer() const; |
| 37 void setArrayBuffer(PassRefPtr<TestArrayBuffer>); | 37 void setArrayBuffer(TestArrayBuffer*); |
| 38 static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBuffer(PassRefPtr<T
estArrayBuffer>); | 38 static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBuffer(TestArrayBuf
fer*); |
| 39 | 39 |
| 40 bool isArrayBufferView() const { return m_type == SpecificTypeArrayBufferVie
w; } | 40 bool isArrayBufferView() const { return m_type == SpecificTypeArrayBufferVie
w; } |
| 41 PassRefPtr<TestArrayBufferView> getAsArrayBufferView() const; | 41 TestArrayBufferView* getAsArrayBufferView() const; |
| 42 void setArrayBufferView(PassRefPtr<TestArrayBufferView>); | 42 void setArrayBufferView(TestArrayBufferView*); |
| 43 static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBufferView(PassRefP
tr<TestArrayBufferView>); | 43 static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBufferView(TestArra
yBufferView*); |
| 44 | 44 |
| 45 bool isDictionary() const { return m_type == SpecificTypeDictionary; } | 45 bool isDictionary() const { return m_type == SpecificTypeDictionary; } |
| 46 Dictionary getAsDictionary() const; | 46 Dictionary getAsDictionary() const; |
| 47 void setDictionary(Dictionary); | 47 void setDictionary(Dictionary); |
| 48 static ArrayBufferOrArrayBufferViewOrDictionary fromDictionary(Dictionary); | 48 static ArrayBufferOrArrayBufferViewOrDictionary fromDictionary(Dictionary); |
| 49 | 49 |
| 50 ArrayBufferOrArrayBufferViewOrDictionary(const ArrayBufferOrArrayBufferViewO
rDictionary&); | 50 ArrayBufferOrArrayBufferViewOrDictionary(const ArrayBufferOrArrayBufferViewO
rDictionary&); |
| 51 ~ArrayBufferOrArrayBufferViewOrDictionary(); | 51 ~ArrayBufferOrArrayBufferViewOrDictionary(); |
| 52 ArrayBufferOrArrayBufferViewOrDictionary& operator=(const ArrayBufferOrArray
BufferViewOrDictionary&); | 52 ArrayBufferOrArrayBufferViewOrDictionary& operator=(const ArrayBufferOrArray
BufferViewOrDictionary&); |
| 53 DECLARE_TRACE(); | 53 DECLARE_TRACE(); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 enum SpecificTypes { | 56 enum SpecificTypes { |
| 57 SpecificTypeNone, | 57 SpecificTypeNone, |
| 58 SpecificTypeArrayBuffer, | 58 SpecificTypeArrayBuffer, |
| 59 SpecificTypeArrayBufferView, | 59 SpecificTypeArrayBufferView, |
| 60 SpecificTypeDictionary, | 60 SpecificTypeDictionary, |
| 61 }; | 61 }; |
| 62 SpecificTypes m_type; | 62 SpecificTypes m_type; |
| 63 | 63 |
| 64 RefPtr<TestArrayBuffer> m_arrayBuffer; | 64 Member<TestArrayBuffer> m_arrayBuffer; |
| 65 RefPtr<TestArrayBufferView> m_arrayBufferView; | 65 Member<TestArrayBufferView> m_arrayBufferView; |
| 66 Dictionary m_dictionary; | 66 Dictionary m_dictionary; |
| 67 | 67 |
| 68 friend CORE_EXPORT v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferV
iewOrDictionary&, v8::Local<v8::Object>, v8::Isolate*); | 68 friend CORE_EXPORT v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferV
iewOrDictionary&, v8::Local<v8::Object>, v8::Isolate*); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 class V8ArrayBufferOrArrayBufferViewOrDictionary final { | 71 class V8ArrayBufferOrArrayBufferViewOrDictionary final { |
| 72 public: | 72 public: |
| 73 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, ArrayBuff
erOrArrayBufferViewOrDictionary&, UnionTypeConversionMode, ExceptionState&); | 73 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, ArrayBuff
erOrArrayBufferViewOrDictionary&, UnionTypeConversionMode, ExceptionState&); |
| 74 }; | 74 }; |
| 75 | 75 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 public: | 310 public: |
| 311 StringOrArrayBufferOrArrayBufferView(); | 311 StringOrArrayBufferOrArrayBufferView(); |
| 312 bool isNull() const { return m_type == SpecificTypeNone; } | 312 bool isNull() const { return m_type == SpecificTypeNone; } |
| 313 | 313 |
| 314 bool isString() const { return m_type == SpecificTypeString; } | 314 bool isString() const { return m_type == SpecificTypeString; } |
| 315 String getAsString() const; | 315 String getAsString() const; |
| 316 void setString(String); | 316 void setString(String); |
| 317 static StringOrArrayBufferOrArrayBufferView fromString(String); | 317 static StringOrArrayBufferOrArrayBufferView fromString(String); |
| 318 | 318 |
| 319 bool isArrayBuffer() const { return m_type == SpecificTypeArrayBuffer; } | 319 bool isArrayBuffer() const { return m_type == SpecificTypeArrayBuffer; } |
| 320 PassRefPtr<TestArrayBuffer> getAsArrayBuffer() const; | 320 TestArrayBuffer* getAsArrayBuffer() const; |
| 321 void setArrayBuffer(PassRefPtr<TestArrayBuffer>); | 321 void setArrayBuffer(TestArrayBuffer*); |
| 322 static StringOrArrayBufferOrArrayBufferView fromArrayBuffer(PassRefPtr<TestA
rrayBuffer>); | 322 static StringOrArrayBufferOrArrayBufferView fromArrayBuffer(TestArrayBuffer*
); |
| 323 | 323 |
| 324 bool isArrayBufferView() const { return m_type == SpecificTypeArrayBufferVie
w; } | 324 bool isArrayBufferView() const { return m_type == SpecificTypeArrayBufferVie
w; } |
| 325 PassRefPtr<TestArrayBufferView> getAsArrayBufferView() const; | 325 TestArrayBufferView* getAsArrayBufferView() const; |
| 326 void setArrayBufferView(PassRefPtr<TestArrayBufferView>); | 326 void setArrayBufferView(TestArrayBufferView*); |
| 327 static StringOrArrayBufferOrArrayBufferView fromArrayBufferView(PassRefPtr<T
estArrayBufferView>); | 327 static StringOrArrayBufferOrArrayBufferView fromArrayBufferView(TestArrayBuf
ferView*); |
| 328 | 328 |
| 329 StringOrArrayBufferOrArrayBufferView(const StringOrArrayBufferOrArrayBufferV
iew&); | 329 StringOrArrayBufferOrArrayBufferView(const StringOrArrayBufferOrArrayBufferV
iew&); |
| 330 ~StringOrArrayBufferOrArrayBufferView(); | 330 ~StringOrArrayBufferOrArrayBufferView(); |
| 331 StringOrArrayBufferOrArrayBufferView& operator=(const StringOrArrayBufferOrA
rrayBufferView&); | 331 StringOrArrayBufferOrArrayBufferView& operator=(const StringOrArrayBufferOrA
rrayBufferView&); |
| 332 DECLARE_TRACE(); | 332 DECLARE_TRACE(); |
| 333 | 333 |
| 334 private: | 334 private: |
| 335 enum SpecificTypes { | 335 enum SpecificTypes { |
| 336 SpecificTypeNone, | 336 SpecificTypeNone, |
| 337 SpecificTypeString, | 337 SpecificTypeString, |
| 338 SpecificTypeArrayBuffer, | 338 SpecificTypeArrayBuffer, |
| 339 SpecificTypeArrayBufferView, | 339 SpecificTypeArrayBufferView, |
| 340 }; | 340 }; |
| 341 SpecificTypes m_type; | 341 SpecificTypes m_type; |
| 342 | 342 |
| 343 String m_string; | 343 String m_string; |
| 344 RefPtr<TestArrayBuffer> m_arrayBuffer; | 344 Member<TestArrayBuffer> m_arrayBuffer; |
| 345 RefPtr<TestArrayBufferView> m_arrayBufferView; | 345 Member<TestArrayBufferView> m_arrayBufferView; |
| 346 | 346 |
| 347 friend CORE_EXPORT v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArra
yBufferView&, v8::Local<v8::Object>, v8::Isolate*); | 347 friend CORE_EXPORT v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArra
yBufferView&, v8::Local<v8::Object>, v8::Isolate*); |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 class V8StringOrArrayBufferOrArrayBufferView final { | 350 class V8StringOrArrayBufferOrArrayBufferView final { |
| 351 public: | 351 public: |
| 352 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrA
rrayBufferOrArrayBufferView&, UnionTypeConversionMode, ExceptionState&); | 352 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, StringOrA
rrayBufferOrArrayBufferView&, UnionTypeConversionMode, ExceptionState&); |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 CORE_EXPORT v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView
&, v8::Local<v8::Object>, v8::Isolate*); | 355 CORE_EXPORT v8::Local<v8::Value> toV8(const StringOrArrayBufferOrArrayBufferView
&, v8::Local<v8::Object>, v8::Isolate*); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 public: | 529 public: |
| 530 TestInterface2OrUint8Array(); | 530 TestInterface2OrUint8Array(); |
| 531 bool isNull() const { return m_type == SpecificTypeNone; } | 531 bool isNull() const { return m_type == SpecificTypeNone; } |
| 532 | 532 |
| 533 bool isTestInterface2() const { return m_type == SpecificTypeTestInterface2;
} | 533 bool isTestInterface2() const { return m_type == SpecificTypeTestInterface2;
} |
| 534 PassRefPtr<TestInterface2> getAsTestInterface2() const; | 534 PassRefPtr<TestInterface2> getAsTestInterface2() const; |
| 535 void setTestInterface2(PassRefPtr<TestInterface2>); | 535 void setTestInterface2(PassRefPtr<TestInterface2>); |
| 536 static TestInterface2OrUint8Array fromTestInterface2(PassRefPtr<TestInterfac
e2>); | 536 static TestInterface2OrUint8Array fromTestInterface2(PassRefPtr<TestInterfac
e2>); |
| 537 | 537 |
| 538 bool isUint8Array() const { return m_type == SpecificTypeUint8Array; } | 538 bool isUint8Array() const { return m_type == SpecificTypeUint8Array; } |
| 539 PassRefPtr<DOMUint8Array> getAsUint8Array() const; | 539 DOMUint8Array* getAsUint8Array() const; |
| 540 void setUint8Array(PassRefPtr<DOMUint8Array>); | 540 void setUint8Array(DOMUint8Array*); |
| 541 static TestInterface2OrUint8Array fromUint8Array(PassRefPtr<DOMUint8Array>); | 541 static TestInterface2OrUint8Array fromUint8Array(DOMUint8Array*); |
| 542 | 542 |
| 543 TestInterface2OrUint8Array(const TestInterface2OrUint8Array&); | 543 TestInterface2OrUint8Array(const TestInterface2OrUint8Array&); |
| 544 ~TestInterface2OrUint8Array(); | 544 ~TestInterface2OrUint8Array(); |
| 545 TestInterface2OrUint8Array& operator=(const TestInterface2OrUint8Array&); | 545 TestInterface2OrUint8Array& operator=(const TestInterface2OrUint8Array&); |
| 546 DECLARE_TRACE(); | 546 DECLARE_TRACE(); |
| 547 | 547 |
| 548 private: | 548 private: |
| 549 enum SpecificTypes { | 549 enum SpecificTypes { |
| 550 SpecificTypeNone, | 550 SpecificTypeNone, |
| 551 SpecificTypeTestInterface2, | 551 SpecificTypeTestInterface2, |
| 552 SpecificTypeUint8Array, | 552 SpecificTypeUint8Array, |
| 553 }; | 553 }; |
| 554 SpecificTypes m_type; | 554 SpecificTypes m_type; |
| 555 | 555 |
| 556 RefPtr<TestInterface2> m_testInterface2; | 556 RefPtr<TestInterface2> m_testInterface2; |
| 557 RefPtr<DOMUint8Array> m_uint8Array; | 557 Member<DOMUint8Array> m_uint8Array; |
| 558 | 558 |
| 559 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Arra
y&, v8::Local<v8::Object>, v8::Isolate*); | 559 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Arra
y&, v8::Local<v8::Object>, v8::Isolate*); |
| 560 }; | 560 }; |
| 561 | 561 |
| 562 class V8TestInterface2OrUint8Array final { | 562 class V8TestInterface2OrUint8Array final { |
| 563 public: | 563 public: |
| 564 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
face2OrUint8Array&, UnionTypeConversionMode, ExceptionState&); | 564 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
face2OrUint8Array&, UnionTypeConversionMode, ExceptionState&); |
| 565 }; | 565 }; |
| 566 | 566 |
| 567 CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Loc
al<v8::Object>, v8::Isolate*); | 567 CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Array&, v8::Loc
al<v8::Object>, v8::Isolate*); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrDouble); | 804 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrDouble); |
| 805 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrStringSequence); | 805 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrStringSequence); |
| 806 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestEnumOrDouble); | 806 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestEnumOrDouble); |
| 807 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterface2OrUint8Array); | 807 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterface2OrUint8Array); |
| 808 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceGarbageCollectedO
rString); | 808 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceGarbageCollectedO
rString); |
| 809 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrLong); | 809 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrLong); |
| 810 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrTestInterfaceEm
pty); | 810 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrTestInterfaceEm
pty); |
| 811 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::UnrestrictedDoubleOrString); | 811 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::UnrestrictedDoubleOrString); |
| 812 | 812 |
| 813 #endif // UnionTypeCore_h | 813 #endif // UnionTypeCore_h |
| OLD | NEW |