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

Unified Diff: third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp

Issue 1896073002: Make BaseChooserOnlyDateAndTimeInputType a subclass of InputTypeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp
index dd26b17450f36e5c066ff5bf8dc9d53a6ef11218..207e44193204239034974365f47a5bc1a6702f77 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseClickableWithKeyInputType.cpp
@@ -62,13 +62,13 @@ void BaseClickableWithKeyInputType::handleKeypressEvent(HTMLInputElement& elemen
}
}
-void BaseClickableWithKeyInputType::handleKeyupEvent(InputType& inputType, KeyboardEvent* event)
+void BaseClickableWithKeyInputType::handleKeyupEvent(InputTypeView& inputTypeView, KeyboardEvent* event)
{
const String& key = event->keyIdentifier();
if (key != "U+0020")
return;
// Simulate mouse click for spacebar for button types.
- inputType.dispatchSimulatedClickIfActive(event);
+ inputTypeView.dispatchSimulatedClickIfActive(event);
}
// FIXME: Could share this with BaseCheckableInputType and RangeInputType if we had a common base class.

Powered by Google App Engine
This is Rietveld 408576698