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

Unified Diff: third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.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/DateTimeFieldElement.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.cpp b/third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.cpp
index 8ea2a29447aeea77d266b2fc83cc23be1e058ea5..05b925629e28ffa01689ed1dce6c451f8c9a84f3 100644
--- a/third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.cpp
@@ -131,10 +131,16 @@ void DateTimeFieldElement::DefaultKeyboardEventHandler(
}
}
-void DateTimeFieldElement::SetFocused(bool value) {
- if (field_owner_)
- value ? field_owner_->DidFocusOnField() : field_owner_->DidBlurFromField();
- ContainerNode::SetFocused(value);
+void DateTimeFieldElement::SetFocused(bool value, WebFocusType focus_type) {
+ if (field_owner_) {
+ if (value) {
+ field_owner_->DidFocusOnField(focus_type);
+ } else {
+ field_owner_->DidBlurFromField(focus_type);
+ }
+ }
+
+ ContainerNode::SetFocused(value, focus_type);
}
void DateTimeFieldElement::FocusOnNextField() {

Powered by Google App Engine
This is Rietveld 408576698