Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: Source/bindings/v8/CustomElementConstructorBuilder.h

Issue 17707002: Implement Custom Elements inserted and removed callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698