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 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 17 matching lines...) Expand all Loading... |
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 CustomElementConstructorBuilder_h | 31 #ifndef CustomElementConstructorBuilder_h |
32 #define CustomElementConstructorBuilder_h | 32 #define CustomElementConstructorBuilder_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptValue.h" | 34 #include "bindings/core/v8/ScriptValue.h" |
35 #include "bindings/core/v8/V8CustomElementLifecycleCallbacks.h" | 35 #include "bindings/core/v8/V8CustomElementLifecycleCallbacks.h" |
36 #include "core/dom/QualifiedName.h" | 36 #include "core/dom/QualifiedName.h" |
37 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" | 37 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" |
38 #include "wtf/Noncopyable.h" | |
39 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
40 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
41 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
42 #include <v8.h> | 41 #include <v8.h> |
43 | 42 |
44 namespace blink { | 43 namespace blink { |
45 | 44 |
46 class CustomElementDefinition; | 45 class CustomElementDefinition; |
47 class Document; | 46 class Document; |
48 class Element; | |
49 class ElementRegistrationOptions; | 47 class ElementRegistrationOptions; |
50 class ExceptionState; | 48 class ExceptionState; |
51 class QualifiedName; | 49 class QualifiedName; |
52 class V8PerContextData; | |
53 struct WrapperTypeInfo; | 50 struct WrapperTypeInfo; |
54 | 51 |
55 // Handles the scripting-specific parts of the Custom Elements element | 52 // Handles the scripting-specific parts of the Custom Elements element |
56 // registration algorithm and constructor generation algorithm. It is | 53 // registration algorithm and constructor generation algorithm. It is |
57 // used in the implementation of those algorithms in | 54 // used in the implementation of those algorithms in |
58 // Document::registerElement. | 55 // Document::registerElement. |
59 class CustomElementConstructorBuilder { | 56 class CustomElementConstructorBuilder { |
60 WTF_MAKE_NONCOPYABLE(CustomElementConstructorBuilder); | 57 WTF_MAKE_NONCOPYABLE(CustomElementConstructorBuilder); |
61 public: | 58 public: |
62 CustomElementConstructorBuilder(ScriptState*, const ElementRegistrationOptio
ns&); | 59 CustomElementConstructorBuilder(ScriptState*, const ElementRegistrationOptio
ns&); |
(...skipping 21 matching lines...) Expand all Loading... |
84 RefPtr<ScriptState> m_scriptState; | 81 RefPtr<ScriptState> m_scriptState; |
85 const ElementRegistrationOptions& m_options; | 82 const ElementRegistrationOptions& m_options; |
86 v8::Handle<v8::Object> m_prototype; | 83 v8::Handle<v8::Object> m_prototype; |
87 v8::Handle<v8::Function> m_constructor; | 84 v8::Handle<v8::Function> m_constructor; |
88 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks; | 85 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks; |
89 }; | 86 }; |
90 | 87 |
91 } // namespace blink | 88 } // namespace blink |
92 | 89 |
93 #endif // CustomElementConstructorBuilder_h | 90 #endif // CustomElementConstructorBuilder_h |
OLD | NEW |