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

Unified Diff: third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp

Issue 2810593002: Set plugin focus by implementing HTMLPlugInElement::SetFocused. (Closed)
Patch Set: fix comments Created 3 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/shadow/DateTimeNumericFieldElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp b/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
index ee0b4038b5f079e730218f78c687a859146ce789..776ce0183d083a3e1f5161c72cc94f46eeb22288 100644
--- a/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp
@@ -92,14 +92,15 @@ int DateTimeNumericFieldElement::DefaultValueForStepUp() const {
return range_.minimum;
}
-void DateTimeNumericFieldElement::SetFocused(bool value) {
+void DateTimeNumericFieldElement::SetFocused(bool value,
+ WebFocusType focus_type) {
if (!value) {
int value = TypeAheadValue();
type_ahead_buffer_.Clear();
if (value >= 0)
SetValueAsInteger(value, kDispatchEvent);
}
- DateTimeFieldElement::SetFocused(value);
+ DateTimeFieldElement::SetFocused(value, focus_type);
}
String DateTimeNumericFieldElement::FormatValue(int value) const {

Powered by Google App Engine
This is Rietveld 408576698