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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 1463823003: Return a enumeration of the state of handling of InputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 8d856aa37fbed1f693a497702e43c948e6b8ed2a..c76642f61dd995eb592dc5bf45c00116d42a44ad 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2007,11 +2007,6 @@ bool Node::dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> un
return event->defaultHandled();
}
-bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& nativeEvent)
-{
- return dispatchEvent(KeyboardEvent::create(nativeEvent, document().domWindow()));
-}
-
bool Node::dispatchMouseEvent(const PlatformMouseEvent& nativeEvent, const AtomicString& eventType,
int detail, Node* relatedTarget)
{
@@ -2019,24 +2014,11 @@ bool Node::dispatchMouseEvent(const PlatformMouseEvent& nativeEvent, const Atomi
return dispatchEvent(event);
}
-bool Node::dispatchGestureEvent(const PlatformGestureEvent& event)
-{
- RefPtrWillBeRawPtr<GestureEvent> gestureEvent = GestureEvent::create(document().domWindow(), event);
- if (!gestureEvent.get())
- return false;
- return dispatchEvent(gestureEvent);
-}
-
void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEventOptions eventOptions, SimulatedClickCreationScope scope)
{
EventDispatcher::dispatchSimulatedClick(*this, underlyingEvent, eventOptions, scope);
}
-bool Node::dispatchWheelEvent(const PlatformWheelEvent& event)
-{
- return dispatchEvent(WheelEvent::create(event, document().domWindow()));
-}
-
void Node::dispatchInputEvent()
{
dispatchScopedEvent(Event::createBubble(EventTypeNames::input));

Powered by Google App Engine
This is Rietveld 408576698