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

Unified Diff: Source/core/html/BaseClickableWithKeyInputType.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/html/BaseClickableWithKeyInputType.h ('k') | Source/core/html/BaseDateAndTimeInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/BaseClickableWithKeyInputType.cpp
diff --git a/Source/core/html/BaseClickableWithKeyInputType.cpp b/Source/core/html/BaseClickableWithKeyInputType.cpp
index 063f2f9ddc568898e31833db1315adcdb75a9e3b..c3d10232d82325dfea595794c0bb63d5a1172ada 100644
--- a/Source/core/html/BaseClickableWithKeyInputType.cpp
+++ b/Source/core/html/BaseClickableWithKeyInputType.cpp
@@ -39,7 +39,12 @@ namespace WebCore {
using namespace HTMLNames;
-void BaseClickableWithKeyInputType::handleKeydownEvent(HTMLInputElement* element, KeyboardEvent* event)
+BaseClickableWithKeyInputType::BaseClickableWithKeyInputType(const Handle<HTMLInputElement>& element)
+ : InputType(element)
+{
+}
+
+void BaseClickableWithKeyInputType::handleKeydownEvent(Handle<HTMLInputElement> element, KeyboardEvent* event)
{
const String& key = event->keyIdentifier();
if (key == "U+0020") {
@@ -49,7 +54,7 @@ void BaseClickableWithKeyInputType::handleKeydownEvent(HTMLInputElement* element
}
}
-void BaseClickableWithKeyInputType::handleKeypressEvent(HTMLInputElement* element, KeyboardEvent* event)
+void BaseClickableWithKeyInputType::handleKeypressEvent(Handle<HTMLInputElement> element, KeyboardEvent* event)
{
int charCode = event->charCode();
if (charCode == '\r') {
@@ -73,7 +78,7 @@ void BaseClickableWithKeyInputType::handleKeyupEvent(InputType& inputType, Keybo
}
// FIXME: Could share this with BaseCheckableInputType and RangeInputType if we had a common base class.
-void BaseClickableWithKeyInputType::accessKeyAction(HTMLInputElement* element, bool sendMouseEvents)
+void BaseClickableWithKeyInputType::accessKeyAction(Handle<HTMLInputElement> element, bool sendMouseEvents)
{
element->dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEvents);
}
« no previous file with comments | « Source/core/html/BaseClickableWithKeyInputType.h ('k') | Source/core/html/BaseDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698