summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc39
1 files changed, 30 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc b/chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc
index ed41b3c08be..336cea6892e 100644
--- a/chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc
+++ b/chromium/third_party/blink/renderer/core/html/forms/input_type_view.cc
@@ -74,28 +74,29 @@ void InputTypeView::DispatchSimulatedClickIfActive(KeyboardEvent& event) const {
void InputTypeView::AccessKeyAction(bool) {
GetElement().focus(FocusParams(SelectionBehaviorOnFocus::kReset,
- kWebFocusTypeNone, nullptr));
+ mojom::blink::FocusType::kNone, nullptr));
}
bool InputTypeView::ShouldSubmitImplicitly(const Event& event) {
- return event.IsKeyboardEvent() &&
- event.type() == event_type_names::kKeypress &&
- ToKeyboardEvent(event).charCode() == '\r';
+ auto* keyboard_event = DynamicTo<KeyboardEvent>(event);
+ return keyboard_event && event.type() == event_type_names::kKeypress &&
+ keyboard_event->charCode() == '\r';
}
HTMLFormElement* InputTypeView::FormForSubmission() const {
return GetElement().Form();
}
+bool InputTypeView::TypeShouldForceLegacyLayout() const {
+ return false;
+}
+
LayoutObject* InputTypeView::CreateLayoutObject(const ComputedStyle& style,
LegacyLayout legacy) const {
return LayoutObject::CreateObject(&GetElement(), style, legacy);
}
-scoped_refptr<ComputedStyle> InputTypeView::CustomStyleForLayoutObject(
- scoped_refptr<ComputedStyle> original_style) {
- return original_style;
-}
+void InputTypeView::CustomStyleForLayoutObject(ComputedStyle&) {}
TextDirection InputTypeView::ComputedTextDirection() {
return GetElement().ComputedStyleRef().Direction();
@@ -111,12 +112,16 @@ bool InputTypeView::HasCustomFocusLogic() const {
void InputTypeView::HandleBlurEvent() {}
-void InputTypeView::HandleFocusInEvent(Element*, WebFocusType) {}
+void InputTypeView::HandleFocusInEvent(Element*, mojom::blink::FocusType) {}
void InputTypeView::StartResourceLoading() {}
void InputTypeView::ClosePopupView() {}
+bool InputTypeView::HasOpenedPopup() const {
+ return false;
+}
+
bool InputTypeView::NeedsShadowSubtree() const {
return true;
}
@@ -128,6 +133,14 @@ void InputTypeView::DestroyShadowSubtree() {
root->RemoveChildren();
}
+HTMLInputElement* InputTypeView::UploadButton() const {
+ return nullptr;
+}
+
+String InputTypeView::FileStatusText() const {
+ return String();
+}
+
void InputTypeView::AltAttributeChanged() {}
void InputTypeView::SrcAttributeChanged() {}
@@ -181,6 +194,10 @@ void InputTypeView::RestoreFormControlState(const FormControlState& state) {
GetElement().setValue(state[0]);
}
+bool InputTypeView::IsDraggedSlider() const {
+ return false;
+}
+
bool InputTypeView::HasBadInput() const {
return false;
}
@@ -190,4 +207,8 @@ void ClickHandlingState::Trace(Visitor* visitor) {
EventDispatchHandlingState::Trace(visitor);
}
+String InputTypeView::RawValue() const {
+ return g_empty_string;
+}
+
} // namespace blink