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

Unified Diff: Source/core/dom/CustomElementCallbackInvocation.h

Issue 18789002: Implement Custom Elements' attributeChangedCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to tip. Created 7 years, 5 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/core/dom/CustomElementCallbackInvocation.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/CustomElementCallbackInvocation.h
similarity index 67%
copy from Source/core/dom/Microtask.h
copy to Source/core/dom/CustomElementCallbackInvocation.h
index 27f72cbec01e5795593d3e545a3b5ca3e5c046fa..0e46c6354aa684344334219cabd95157e2f27a1e 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/core/dom/CustomElementCallbackInvocation.h
@@ -28,19 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Microtask_h
-#define Microtask_h
+#ifndef CustomElementCallbackInvocation_h
+#define CustomElementCallbackInvocation_h
+
+#include "wtf/PassOwnPtr.h"
+#include "wtf/text/AtomicString.h"
namespace WebCore {
-class Microtask {
+class CustomElementLifecycleCallbacks;
+class Element;
+
+class CustomElementCallbackInvocation {
+ WTF_MAKE_NONCOPYABLE(CustomElementCallbackInvocation);
public:
- static void performCheckpoint();
+ static PassOwnPtr<CustomElementCallbackInvocation> createCreatedInvocation();
+ static PassOwnPtr<CustomElementCallbackInvocation> createAttributeChangedInvocation(const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue);
+
+ CustomElementCallbackInvocation() { }
+ virtual ~CustomElementCallbackInvocation() { }
-private:
- explicit Microtask();
+ virtual void dispatch(CustomElementLifecycleCallbacks*, Element*) = 0;
};
}
-#endif // Microtask_h
+#endif // CustomElementCallbackInvocation_h
« no previous file with comments | « Source/core/dom/CustomElementCallbackDispatcher.cpp ('k') | Source/core/dom/CustomElementCallbackInvocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698