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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.h

Issue 2209773002: Remove the blocking touch handlers for the input[type=range] and add touch-action instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add parseAttribute back to pass one more test Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 private: 278 private:
279 enum AutoCompleteSetting { Uninitialized, On, Off }; 279 enum AutoCompleteSetting { Uninitialized, On, Off };
280 280
281 void didAddUserAgentShadowRoot(ShadowRoot&) final; 281 void didAddUserAgentShadowRoot(ShadowRoot&) final;
282 282
283 void willChangeForm() final; 283 void willChangeForm() final;
284 void didChangeForm() final; 284 void didChangeForm() final;
285 InsertionNotificationRequest insertedInto(ContainerNode*) override; 285 InsertionNotificationRequest insertedInto(ContainerNode*) override;
286 void removedFrom(ContainerNode*) final; 286 void removedFrom(ContainerNode*) final;
287 void didMoveToNewDocument(Document& oldDocument) final; 287 void didMoveToNewDocument(Document& oldDocument) final;
288 void removeAllEventListeners() final;
289 288
290 bool hasCustomFocusLogic() const final; 289 bool hasCustomFocusLogic() const final;
291 bool isKeyboardFocusable() const final; 290 bool isKeyboardFocusable() const final;
292 bool shouldShowFocusRingOnMouseFocus() const final; 291 bool shouldShowFocusRingOnMouseFocus() const final;
293 bool isEnumeratable() const final; 292 bool isEnumeratable() const final;
294 bool isInteractiveContent() const final; 293 bool isInteractiveContent() const final;
295 bool supportLabels() const final; 294 bool supportLabels() const final;
296 bool matchesDefaultPseudoClass() const override; 295 bool matchesDefaultPseudoClass() const override;
297 296
298 bool isTextFormControl() const final { return isTextField(); } 297 bool isTextFormControl() const final { return isTextField(); }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element, WebFocusType, InputDeviceCapabilities* sourceCapabilities) final; 347 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element, WebFocusType, InputDeviceCapabilities* sourceCapabilities) final;
349 bool supportsAutocapitalize() const final; 348 bool supportsAutocapitalize() const final;
350 const AtomicString& defaultAutocapitalize() const final; 349 const AtomicString& defaultAutocapitalize() const final;
351 350
352 bool isOptionalFormControl() const final { return !isRequiredFormControl(); } 351 bool isOptionalFormControl() const final { return !isRequiredFormControl(); }
353 bool isRequiredFormControl() const final; 352 bool isRequiredFormControl() const final;
354 bool recalcWillValidate() const final; 353 bool recalcWillValidate() const final;
355 void requiredAttributeChanged() final; 354 void requiredAttributeChanged() final;
356 void disabledAttributeChanged() final; 355 void disabledAttributeChanged() final;
357 356
358 void updateTouchEventHandlerRegistry();
359 void initializeTypeInParsing(); 357 void initializeTypeInParsing();
360 void updateType(); 358 void updateType();
361 359
362 void subtreeHasChanged() final; 360 void subtreeHasChanged() final;
363 361
364 void setListAttributeTargetObserver(ListAttributeTargetObserver*); 362 void setListAttributeTargetObserver(ListAttributeTargetObserver*);
365 void resetListAttributeTargetObserver(); 363 void resetListAttributeTargetObserver();
366 void parseMaxLengthAttribute(const AtomicString&); 364 void parseMaxLengthAttribute(const AtomicString&);
367 void parseMinLengthAttribute(const AtomicString&); 365 void parseMinLengthAttribute(const AtomicString&);
368 void updateValueIfNeeded(); 366 void updateValueIfNeeded();
(...skipping 17 matching lines...) Expand all
386 // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d irty-flag 384 // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d irty-flag
387 unsigned m_dirtyCheckedness : 1; 385 unsigned m_dirtyCheckedness : 1;
388 unsigned m_isIndeterminate : 1; 386 unsigned m_isIndeterminate : 1;
389 unsigned m_isActivatedSubmit : 1; 387 unsigned m_isActivatedSubmit : 1;
390 unsigned m_autocomplete : 2; // AutoCompleteSetting 388 unsigned m_autocomplete : 2; // AutoCompleteSetting
391 unsigned m_hasNonEmptyList : 1; 389 unsigned m_hasNonEmptyList : 1;
392 unsigned m_stateRestored : 1; 390 unsigned m_stateRestored : 1;
393 unsigned m_parsingInProgress : 1; 391 unsigned m_parsingInProgress : 1;
394 unsigned m_valueAttributeWasUpdatedAfterParsing : 1; 392 unsigned m_valueAttributeWasUpdatedAfterParsing : 1;
395 unsigned m_canReceiveDroppedFiles : 1; 393 unsigned m_canReceiveDroppedFiles : 1;
396 unsigned m_hasTouchEventHandler : 1;
397 unsigned m_shouldRevealPassword : 1; 394 unsigned m_shouldRevealPassword : 1;
398 unsigned m_needsToUpdateViewValue : 1; 395 unsigned m_needsToUpdateViewValue : 1;
399 unsigned m_isPlaceholderVisible : 1; 396 unsigned m_isPlaceholderVisible : 1;
400 Member<InputType> m_inputType; 397 Member<InputType> m_inputType;
401 Member<InputTypeView> m_inputTypeView; 398 Member<InputTypeView> m_inputTypeView;
402 // The ImageLoader must be owned by this element because the loader code ass umes 399 // The ImageLoader must be owned by this element because the loader code ass umes
403 // that it lives as long as its owning element lives. If we move the loader into 400 // that it lives as long as its owning element lives. If we move the loader into
404 // the ImageInput object we may delete the loader while this element lives o n. 401 // the ImageInput object we may delete the loader while this element lives o n.
405 Member<HTMLImageLoader> m_imageLoader; 402 Member<HTMLImageLoader> m_imageLoader;
406 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; 403 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver;
407 }; 404 };
408 405
409 } // namespace blink 406 } // namespace blink
410 407
411 #endif // HTMLInputElement_h 408 #endif // HTMLInputElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698