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 60 matching lines...) Loading... |
71 void didRegisterDefinition(CustomElementDefinition*, const HashSet<Element*>
& upgradeCandidates) const; | 71 void didRegisterDefinition(CustomElementDefinition*, const HashSet<Element*>
& upgradeCandidates) const; |
72 | 72 |
73 // This method collects a return value for the bindings. It is | 73 // This method collects a return value for the bindings. It is |
74 // safe to call this method even if the builder failed; it will | 74 // safe to call this method even if the builder failed; it will |
75 // return an empty value. | 75 // return an empty value. |
76 ScriptValue bindingsReturnValue() const; | 76 ScriptValue bindingsReturnValue() const; |
77 | 77 |
78 private: | 78 private: |
79 bool hasValidPrototypeChainFor(WrapperTypeInfo*) const; | 79 bool hasValidPrototypeChainFor(WrapperTypeInfo*) const; |
80 bool prototypeIsValid() const; | 80 bool prototypeIsValid() const; |
| 81 v8::Handle<v8::Function> retrieveCallback(const char* name) const; |
81 | 82 |
82 v8::Handle<v8::Context> m_context; | 83 v8::Handle<v8::Context> m_context; |
83 const Dictionary* m_options; | 84 const Dictionary* m_options; |
84 v8::Handle<v8::Object> m_prototype; | 85 v8::Handle<v8::Object> m_prototype; |
85 AtomicString m_namespaceURI; | 86 AtomicString m_namespaceURI; |
86 v8::Handle<v8::Function> m_constructor; | 87 v8::Handle<v8::Function> m_constructor; |
87 }; | 88 }; |
88 | 89 |
89 } | 90 } |
90 | 91 |
91 #endif // CustomElementConstructorBuilder_h | 92 #endif // CustomElementConstructorBuilder_h |
OLD | NEW |