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

Unified Diff: Source/core/dom/TextEvent.h

Issue 24246011: Move form-related 78 files to core/html/forms/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/dom/Document.cpp ('k') | Source/core/html/BaseButtonInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TextEvent.h
diff --git a/Source/core/dom/TextEvent.h b/Source/core/dom/TextEvent.h
index c0dcb692645dbb3b8cc4ea49a29eb9734e4b91c4..a9bb41548f601e26d761888a2859d174b1c44752 100644
--- a/Source/core/dom/TextEvent.h
+++ b/Source/core/dom/TextEvent.h
@@ -27,6 +27,7 @@
#ifndef TextEvent_h
#define TextEvent_h
+#include "core/dom/EventNames.h"
#include "core/dom/TextEventInputType.h"
#include "core/dom/UIEvent.h"
@@ -76,6 +77,12 @@ namespace WebCore {
bool m_shouldMatchStyle;
};
+inline TextEvent* toTextEvent(Event* event)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!event || (event->type() == eventNames().textInputEvent && event->hasInterface(eventNames().interfaceForTextEvent)));
+ return static_cast<TextEvent*>(event);
+}
+
} // namespace WebCore
#endif // TextEvent_h
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/BaseButtonInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698