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

Unified Diff: Source/core/events/EventTarget.cpp

Issue 1184493002: Document and measure the TextEvent interface and the textinput event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 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 | « no previous file | Source/core/events/TextEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventTarget.cpp
diff --git a/Source/core/events/EventTarget.cpp b/Source/core/events/EventTarget.cpp
index 501752209c6707590d69250dbcadf0f07e9ab2ec..b009b1d9fc772dfa35e4d3bff65852357e35db86 100644
--- a/Source/core/events/EventTarget.cpp
+++ b/Source/core/events/EventTarget.cpp
@@ -327,6 +327,9 @@ void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
} else if (event->type() == EventTypeNames::focusin || event->type() == EventTypeNames::focusout) {
if (LocalDOMWindow* executingWindow = this->executingWindow())
UseCounter::count(executingWindow->document(), UseCounter::FocusInOutEvent);
+ } else if (event->type() == EventTypeNames::textInput) {
+ if (LocalDOMWindow* executingWindow = this->executingWindow())
+ UseCounter::count(executingWindow->document(), UseCounter::TextInputFired);
}
size_t i = 0;
« no previous file with comments | « no previous file | Source/core/events/TextEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698