| 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 TestInterfaceEventInit_h | 7 #ifndef TestInterfaceEventInit_h |
| 8 #define TestInterfaceEventInit_h | 8 #define TestInterfaceEventInit_h |
| 9 | 9 |
| 10 #include "core/events/EventInitDictionary.h" | 10 #include "core/events/EventInitDictionary.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class TestInterfaceEventInit : public EventInitDictionary { | 16 class TestInterfaceEventInit : public EventInitDictionary { |
| 17 ALLOW_ONLY_INLINE_ALLOCATION(); | 17 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 18 public: | 18 public: |
| 19 TestInterfaceEventInit(); | 19 TestInterfaceEventInit(); |
| 20 | 20 |
| 21 bool hasStringMember() const { return !m_stringMember.isNull(); } | 21 bool hasStringMember() const { return !m_stringMember.isNull(); } |
| 22 String stringMember() const { return m_stringMember; } | 22 String stringMember() const { return m_stringMember; } |
| 23 void setStringMember(String value) { m_stringMember = value; } | 23 void setStringMember(String value) { m_stringMember = value; } |
| 24 void resetStringMember() { m_stringMember = String(); } |
| 24 | 25 |
| 25 virtual void trace(Visitor*); | 26 virtual void trace(Visitor*); |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 String m_stringMember; | 29 String m_stringMember; |
| 29 | 30 |
| 30 friend class V8TestInterfaceEventInit; | 31 friend class V8TestInterfaceEventInit; |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 } // namespace blink | 34 } // namespace blink |
| 34 | 35 |
| 35 #endif // TestInterfaceEventInit_h | 36 #endif // TestInterfaceEventInit_h |
| OLD | NEW |