OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 Element* createCustomTagElement(Document&, const QualifiedName&); | 62 Element* createCustomTagElement(Document&, const QualifiedName&); |
63 static void setIsAttributeAndTypeExtension(Element*, | 63 static void setIsAttributeAndTypeExtension(Element*, |
64 const AtomicString& type); | 64 const AtomicString& type); |
65 static void setTypeExtension(Element*, const AtomicString& type); | 65 static void setTypeExtension(Element*, const AtomicString& type); |
66 | 66 |
67 void resolve(Element*, const V0CustomElementDescriptor&); | 67 void resolve(Element*, const V0CustomElementDescriptor&); |
68 | 68 |
69 bool nameIsDefined(const AtomicString& name) const; | 69 bool nameIsDefined(const AtomicString& name) const; |
70 void setV1(const CustomElementRegistry*); | 70 void setV1(const CustomElementRegistry*); |
| 71 bool v1NameIsDefined(const AtomicString& name) const; |
71 | 72 |
72 DECLARE_TRACE(); | 73 DECLARE_TRACE(); |
73 | 74 |
74 protected: | 75 protected: |
75 V0CustomElementRegistrationContext(); | 76 V0CustomElementRegistrationContext(); |
76 | 77 |
77 // Instance creation | 78 // Instance creation |
78 void didGiveTypeExtension(Element*, const AtomicString& type); | 79 void didGiveTypeExtension(Element*, const AtomicString& type); |
79 | 80 |
80 private: | 81 private: |
81 void resolveOrScheduleResolution(Element*, const AtomicString& typeExtension); | 82 void resolveOrScheduleResolution(Element*, const AtomicString& typeExtension); |
82 | 83 |
83 V0CustomElementRegistry m_registry; | 84 V0CustomElementRegistry m_registry; |
84 | 85 |
85 // Element creation | 86 // Element creation |
86 Member<V0CustomElementUpgradeCandidateMap> m_candidates; | 87 Member<V0CustomElementUpgradeCandidateMap> m_candidates; |
87 }; | 88 }; |
88 | 89 |
89 } // namespace blink | 90 } // namespace blink |
90 | 91 |
91 #endif // V0CustomElementRegistrationContext_h | 92 #endif // V0CustomElementRegistrationContext_h |
OLD | NEW |