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

Unified Diff: third_party/WebKit/Source/core/events/EventDispatcher.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/core/events/EventDispatcher.cpp
diff --git a/third_party/WebKit/Source/core/events/EventDispatcher.cpp b/third_party/WebKit/Source/core/events/EventDispatcher.cpp
index 5f13a7d4a30854abb4e7e82c5899dde7541c13dc..c891b27cacba58146b2a1fe37afdffb8c259f93b 100644
--- a/third_party/WebKit/Source/core/events/EventDispatcher.cpp
+++ b/third_party/WebKit/Source/core/events/EventDispatcher.cpp
@@ -149,7 +149,7 @@ inline EventDispatchContinuation EventDispatcher::dispatchEventPreProcess(EventD
inline EventDispatchContinuation EventDispatcher::dispatchEventAtCapturing()
{
// Trigger capturing event handlers, starting at the top and working our way down.
- m_event->setEventPhase(Event::CAPTURING_PHASE);
+ m_event->setEventPhase(Event::kCapturingPhase);
if (m_event->eventPath().windowEventContext().handleLocalEvents(*m_event) && m_event->propagationStopped())
return DoneDispatching;
@@ -168,7 +168,7 @@ inline EventDispatchContinuation EventDispatcher::dispatchEventAtCapturing()
inline EventDispatchContinuation EventDispatcher::dispatchEventAtTarget()
{
- m_event->setEventPhase(Event::AT_TARGET);
+ m_event->setEventPhase(Event::kAtTarget);
m_event->eventPath()[0].handleLocalEvents(*m_event);
return m_event->propagationStopped() ? DoneDispatching : ContinueDispatching;
}
@@ -180,9 +180,9 @@ inline void EventDispatcher::dispatchEventAtBubbling()
for (size_t i = 1; i < size; ++i) {
const NodeEventContext& eventContext = m_event->eventPath()[i];
if (eventContext.currentTargetSameAsTarget()) {
- m_event->setEventPhase(Event::AT_TARGET);
+ m_event->setEventPhase(Event::kAtTarget);
} else if (m_event->bubbles() && !m_event->cancelBubble()) {
- m_event->setEventPhase(Event::BUBBLING_PHASE);
+ m_event->setEventPhase(Event::kBubblingPhase);
} else {
if (m_event->bubbles() && m_event->cancelBubble() && eventContext.node() && eventContext.node()->hasEventListeners(m_event->type()))
UseCounter::count(eventContext.node()->document(), UseCounter::EventCancelBubbleAffected);
@@ -193,7 +193,7 @@ inline void EventDispatcher::dispatchEventAtBubbling()
return;
}
if (m_event->bubbles() && !m_event->cancelBubble()) {
- m_event->setEventPhase(Event::BUBBLING_PHASE);
+ m_event->setEventPhase(Event::kBubblingPhase);
m_event->eventPath().windowEventContext().handleLocalEvents(*m_event);
} else if (m_event->bubbles() && m_event->eventPath().windowEventContext().window() && m_event->eventPath().windowEventContext().window()->hasEventListeners(m_event->type())) {
UseCounter::count(m_event->eventPath().windowEventContext().window()->getExecutionContext(), UseCounter::EventCancelBubbleAffected);
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698