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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 static StringOrDouble nativeValue(const v8::Handle<v8::Value>&, v8::Isolate*
, ExceptionState&); | 320 static StringOrDouble nativeValue(const v8::Handle<v8::Value>&, v8::Isolate*
, ExceptionState&); |
321 }; | 321 }; |
322 | 322 |
323 class TestInterfaceGarbageCollectedOrString final { | 323 class TestInterfaceGarbageCollectedOrString final { |
324 ALLOW_ONLY_INLINE_ALLOCATION(); | 324 ALLOW_ONLY_INLINE_ALLOCATION(); |
325 public: | 325 public: |
326 TestInterfaceGarbageCollectedOrString(); | 326 TestInterfaceGarbageCollectedOrString(); |
327 bool isNull() const { return m_type == SpecificTypeNone; } | 327 bool isNull() const { return m_type == SpecificTypeNone; } |
328 | 328 |
329 bool isTestInterfaceGarbageCollected() const { return m_type == SpecificType
TestInterfaceGarbageCollected; } | 329 bool isTestInterfaceGarbageCollected() const { return m_type == SpecificType
TestInterfaceGarbageCollected; } |
330 RawPtr<TestInterfaceGarbageCollected> getAsTestInterfaceGarbageCollected() c
onst; | 330 TestInterfaceGarbageCollected* getAsTestInterfaceGarbageCollected() const; |
331 void setTestInterfaceGarbageCollected(RawPtr<TestInterfaceGarbageCollected>)
; | 331 void setTestInterfaceGarbageCollected(TestInterfaceGarbageCollected*); |
332 | 332 |
333 bool isString() const { return m_type == SpecificTypeString; } | 333 bool isString() const { return m_type == SpecificTypeString; } |
334 String getAsString() const; | 334 String getAsString() const; |
335 void setString(String); | 335 void setString(String); |
336 | 336 |
337 void trace(Visitor*); | 337 void trace(Visitor*); |
338 | 338 |
339 private: | 339 private: |
340 enum SpecificTypes { | 340 enum SpecificTypes { |
341 SpecificTypeNone, | 341 SpecificTypeNone, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 { | 514 { |
515 if (isUndefinedOrNull(v8Value)) | 515 if (isUndefinedOrNull(v8Value)) |
516 return; | 516 return; |
517 V8DoubleOrString::toImpl(isolate, v8Value, impl, exceptionState); | 517 V8DoubleOrString::toImpl(isolate, v8Value, impl, exceptionState); |
518 } | 518 } |
519 }; | 519 }; |
520 | 520 |
521 } // namespace blink | 521 } // namespace blink |
522 | 522 |
523 #endif // UnionTypeCore_h | 523 #endif // UnionTypeCore_h |
OLD | NEW |