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

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indendation problems (added by meld?) 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/frame/EventHandlerRegistry.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index ba716d90e9e78dd69407f1040a287876ffe3f573..fee45d7c170debb34f3ccdba3bde3de580d632ea 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -421,11 +421,6 @@ PassRefPtrWillBeRawPtr<Document> LocalDOMWindow::installNewDocument(const String
}
m_frame->selection().updateSecureKeyboardEntryIfActive();
-
- if (m_frame->isMainFrame()) {
- if (m_document->hasTouchEventHandlers())
- m_frame->host()->chrome().client().needTouchEvents(true);
- }
return m_document;
}
@@ -1524,9 +1519,7 @@ bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr<
if (Document* document = this->document()) {
document->addListenerTypeIfNeeded(eventType);
- if (isTouchEventType(eventType))
- document->didAddTouchEventHandler(document);
- else if (eventType == EventTypeNames::storage)
+ if (eventType == EventTypeNames::storage)
didAddStorageEventListener(this);
}
@@ -1559,11 +1552,6 @@ bool LocalDOMWindow::removeEventListener(const AtomicString& eventType, PassRefP
if (m_frame && m_frame->host())
m_frame->host()->eventHandlerRegistry().didRemoveEventHandler(*this, eventType);
- if (Document* document = this->document()) {
- if (isTouchEventType(eventType))
- document->didRemoveTouchEventHandler(document);
- }
-
lifecycleNotifier().notifyRemoveEventListener(this, eventType);
if (eventType == EventTypeNames::unload) {
@@ -1632,9 +1620,6 @@ void LocalDOMWindow::removeAllEventListenersInternal(BroadcastListenerRemoval mo
if (mode == DoBroadcastListenerRemoval) {
if (m_frame && m_frame->host())
m_frame->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this);
-
- if (Document* document = this->document())
- document->didClearTouchEventHandlers(document);
}
removeAllUnloadEventListeners(this);
« no previous file with comments | « Source/core/frame/EventHandlerRegistry.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698