OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 10 matching lines...) Expand all Loading... |
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef CustomElementDefinition_h | 31 #ifndef V0CustomElementDefinition_h |
32 #define CustomElementDefinition_h | 32 #define V0CustomElementDefinition_h |
33 | 33 |
34 #include "core/dom/custom/CustomElementDescriptor.h" | 34 #include "core/dom/custom/V0CustomElementDescriptor.h" |
35 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" | 35 #include "core/dom/custom/V0CustomElementLifecycleCallbacks.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class CustomElementDefinition final : public GarbageCollectedFinalized<CustomEle
mentDefinition> { | 39 class V0CustomElementDefinition final : public GarbageCollectedFinalized<V0Custo
mElementDefinition> { |
40 public: | 40 public: |
41 static CustomElementDefinition* create(const CustomElementDescriptor&, Custo
mElementLifecycleCallbacks*); | 41 static V0CustomElementDefinition* create(const V0CustomElementDescriptor&, V
0CustomElementLifecycleCallbacks*); |
42 | 42 |
43 const CustomElementDescriptor& descriptor() const { return m_descriptor; } | 43 const V0CustomElementDescriptor& descriptor() const { return m_descriptor; } |
44 CustomElementLifecycleCallbacks* callbacks() const { return m_callbacks.get(
); } | 44 V0CustomElementLifecycleCallbacks* callbacks() const { return m_callbacks.ge
t(); } |
45 | 45 |
46 DECLARE_TRACE(); | 46 DECLARE_TRACE(); |
47 | 47 |
48 private: | 48 private: |
49 CustomElementDefinition(const CustomElementDescriptor&, CustomElementLifecyc
leCallbacks*); | 49 V0CustomElementDefinition(const V0CustomElementDescriptor&, V0CustomElementL
ifecycleCallbacks*); |
50 | 50 |
51 CustomElementDescriptor m_descriptor; | 51 V0CustomElementDescriptor m_descriptor; |
52 Member<CustomElementLifecycleCallbacks> m_callbacks; | 52 Member<V0CustomElementLifecycleCallbacks> m_callbacks; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // CustomElementDefinition_h | 57 #endif // V0CustomElementDefinition_h |
OLD | NEW |