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

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

Issue 1682683002: [InputEvent] Add InputEvent with basic interface behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4601c1891bdd06e43776a94d037d99cab6265032..5821e596567d96ed1541f3b6091c23a0a772d378 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -66,6 +66,7 @@
#include "core/events/EventDispatcher.h"
#include "core/events/EventListener.h"
#include "core/events/GestureEvent.h"
+#include "core/events/InputEvent.h"
#include "core/events/KeyboardEvent.h"
#include "core/events/MouseEvent.h"
#include "core/events/MutationEvent.h"
@@ -2084,7 +2085,13 @@ void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEve
void Node::dispatchInputEvent()
{
- dispatchScopedEvent(Event::createBubble(EventTypeNames::input));
+ if (RuntimeEnabledFeatures::inputEventEnabled()) {
+ InputEventInit eventInitDict;
+ eventInitDict.setBubbles(true);
+ dispatchScopedEvent(InputEvent::create(EventTypeNames::input, eventInitDict));
+ } else {
+ dispatchScopedEvent(Event::createBubble(EventTypeNames::input));
+ }
}
void Node::defaultEventHandler(Event* event)
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698