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

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

Issue 16959002: Spatial navigation enhancements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied changes suggested by code reviewer. Created 7 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/html/HTMLElement.h » ('j') | Source/core/html/HTMLElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/KeyboardEvent.h
diff --git a/Source/core/dom/KeyboardEvent.h b/Source/core/dom/KeyboardEvent.h
index 1900174aa7f5dcc608cbb6eb08311275bb10ee7a..29d18b08bda3117e525682eae908a60e44c66488 100644
--- a/Source/core/dom/KeyboardEvent.h
+++ b/Source/core/dom/KeyboardEvent.h
@@ -123,6 +123,12 @@ private:
virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
};
+inline KeyboardEvent* toKeyboardEvent(Event* event)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(event && event->isKeyboardEvent());
tkent 2013/06/16 22:50:24 We usually allow NULL argument for toFoo functions
+ return static_cast<KeyboardEvent*>(event);
+}
+
} // namespace WebCore
#endif // KeyboardEvent_h
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.h » ('j') | Source/core/html/HTMLElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698