| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 PassRefPtr<CustomElementLifecycleCallbacks> createCallbacks(); | 71 PassRefPtr<CustomElementLifecycleCallbacks> createCallbacks(); |
| 72 bool createConstructor(Document*, CustomElementDefinition*, ExceptionState&)
; | 72 bool createConstructor(Document*, CustomElementDefinition*, ExceptionState&)
; |
| 73 bool didRegisterDefinition(CustomElementDefinition*) const; | 73 bool didRegisterDefinition(CustomElementDefinition*) const; |
| 74 | 74 |
| 75 // This method collects a return value for the bindings. It is | 75 // This method collects a return value for the bindings. It is |
| 76 // safe to call this method even if the builder failed; it will | 76 // safe to call this method even if the builder failed; it will |
| 77 // return an empty value. | 77 // return an empty value. |
| 78 ScriptValue bindingsReturnValue() const; | 78 ScriptValue bindingsReturnValue() const; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 bool hasValidPrototypeChainFor(WrapperTypeInfo*) const; | 81 bool hasValidPrototypeChainFor(const WrapperTypeInfo*) const; |
| 82 bool prototypeIsValid(const AtomicString& type, ExceptionState&) const; | 82 bool prototypeIsValid(const AtomicString& type, ExceptionState&) const; |
| 83 v8::Handle<v8::Function> retrieveCallback(v8::Isolate*, const char* name); | 83 v8::Handle<v8::Function> retrieveCallback(v8::Isolate*, const char* name); |
| 84 | 84 |
| 85 v8::Handle<v8::Context> m_context; | 85 v8::Handle<v8::Context> m_context; |
| 86 const Dictionary* m_options; | 86 const Dictionary* m_options; |
| 87 v8::Handle<v8::Object> m_prototype; | 87 v8::Handle<v8::Object> m_prototype; |
| 88 WrapperTypeInfo* m_wrapperType; | 88 const WrapperTypeInfo* m_wrapperType; |
| 89 v8::Handle<v8::Function> m_constructor; | 89 v8::Handle<v8::Function> m_constructor; |
| 90 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks; | 90 RefPtr<V8CustomElementLifecycleCallbacks> m_callbacks; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } | 93 } |
| 94 | 94 |
| 95 #endif // CustomElementConstructorBuilder_h | 95 #endif // CustomElementConstructorBuilder_h |
| OLD | NEW |