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

Unified Diff: Source/bindings/v8/V8CustomElementCallback.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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/V8CustomElementCallback.h
diff --git a/Source/bindings/v8/V8CustomElementCallback.h b/Source/bindings/v8/V8CustomElementCallback.h
index 24becc1b4164e4b20dd394d20033551bcfe2af10..09bc9609e3e17047c1895d60f8ac8723e9151353 100644
--- a/Source/bindings/v8/V8CustomElementCallback.h
+++ b/Source/bindings/v8/V8CustomElementCallback.h
@@ -44,17 +44,22 @@ class ScriptExecutionContext;
class V8CustomElementCallback : public CustomElementCallback, ActiveDOMCallback {
public:
- static PassRefPtr<V8CustomElementCallback> create(ScriptExecutionContext*, v8::Handle<v8::Object> owner, v8::Handle<v8::Function> ready);
+ static PassRefPtr<V8CustomElementCallback> create(ScriptExecutionContext*, v8::Handle<v8::Object> owner, v8::Handle<v8::Function> ready, v8::Handle<v8::Function> inserted, v8::Handle<v8::Function> removed);
virtual ~V8CustomElementCallback() { }
private:
- V8CustomElementCallback(ScriptExecutionContext*, v8::Handle<v8::Function> ready);
+ V8CustomElementCallback(ScriptExecutionContext*, v8::Handle<v8::Function> ready, v8::Handle<v8::Function> inserted, v8::Handle<v8::Function> removed);
virtual void ready(Element*) OVERRIDE;
+ virtual void inserted(Element*) OVERRIDE;
+ virtual void removed(Element*) OVERRIDE;
+ void invoke(const ScopedPersistent<v8::Function>& callback, Element*);
RefPtr<DOMWrapperWorld> m_world;
ScopedPersistent<v8::Function> m_ready;
+ ScopedPersistent<v8::Function> m_inserted;
+ ScopedPersistent<v8::Function> m_removed;
};
}

Powered by Google App Engine
This is Rietveld 408576698