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

Unified Diff: Source/core/dom/custom/CustomElementCallbackInvocation.cpp

Issue 494133002: Append "Callback" to each value of enum CallbackType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/custom/CustomElement.cpp ('k') | Source/core/dom/custom/CustomElementLifecycleCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementCallbackInvocation.cpp
diff --git a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
index efa5c62d23c0d03635d59082fb2b322a4e24fb6a..77badcd11009809ca256859c84f0073cba3ac8bc 100644
--- a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
+++ b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
@@ -51,16 +51,16 @@ AttachedDetachedInvocation::AttachedDetachedInvocation(PassRefPtr<CustomElementL
: CustomElementCallbackInvocation(callbacks)
, m_which(which)
{
- ASSERT(m_which == CustomElementLifecycleCallbacks::Attached || m_which == CustomElementLifecycleCallbacks::Detached);
+ ASSERT(m_which == CustomElementLifecycleCallbacks::AttachedCallback || m_which == CustomElementLifecycleCallbacks::DetachedCallback);
}
void AttachedDetachedInvocation::dispatch(Element* element)
{
switch (m_which) {
- case CustomElementLifecycleCallbacks::Attached:
+ case CustomElementLifecycleCallbacks::AttachedCallback:
callbacks()->attached(element);
break;
- case CustomElementLifecycleCallbacks::Detached:
+ case CustomElementLifecycleCallbacks::DetachedCallback:
callbacks()->detached(element);
break;
default:
@@ -108,18 +108,18 @@ private:
void CreatedInvocation::dispatch(Element* element)
{
if (element->inDocument() && element->document().domWindow())
- CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::Attached);
+ CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::AttachedCallback);
callbacks()->created(element);
}
PassOwnPtr<CustomElementCallbackInvocation> CustomElementCallbackInvocation::createInvocation(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, CustomElementLifecycleCallbacks::CallbackType which)
{
switch (which) {
- case CustomElementLifecycleCallbacks::Created:
+ case CustomElementLifecycleCallbacks::CreatedCallback:
return adoptPtr(new CreatedInvocation(callbacks));
- case CustomElementLifecycleCallbacks::Attached:
- case CustomElementLifecycleCallbacks::Detached:
+ case CustomElementLifecycleCallbacks::AttachedCallback:
+ case CustomElementLifecycleCallbacks::DetachedCallback:
return adoptPtr(new AttachedDetachedInvocation(callbacks, which));
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/core/dom/custom/CustomElement.cpp ('k') | Source/core/dom/custom/CustomElementLifecycleCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698