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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1764063002: Rename two functions related to 'default button' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. 455 // until they know all of their nested <param>s. [Radar 3603191, 4040848].
456 // Also used for script elements and some SVG elements for similar purposes, 456 // Also used for script elements and some SVG elements for similar purposes,
457 // but making parsing a special case in this respect should be avoided if po ssible. 457 // but making parsing a special case in this respect should be avoided if po ssible.
458 virtual void finishParsingChildren(); 458 virtual void finishParsingChildren();
459 459
460 void beginParsingChildren() { setIsFinishedParsingChildren(false); } 460 void beginParsingChildren() { setIsFinishedParsingChildren(false); }
461 461
462 PseudoElement* pseudoElement(PseudoId) const; 462 PseudoElement* pseudoElement(PseudoId) const;
463 LayoutObject* pseudoElementLayoutObject(PseudoId) const; 463 LayoutObject* pseudoElementLayoutObject(PseudoId) const;
464 464
465 virtual bool matchesDefaultPseudoClass() const { return false; }
465 virtual bool matchesReadOnlyPseudoClass() const { return false; } 466 virtual bool matchesReadOnlyPseudoClass() const { return false; }
466 virtual bool matchesReadWritePseudoClass() const { return false; } 467 virtual bool matchesReadWritePseudoClass() const { return false; }
467 virtual bool matchesValidityPseudoClasses() const { return false; } 468 virtual bool matchesValidityPseudoClasses() const { return false; }
468 bool matches(const String& selectors, ExceptionState&); 469 bool matches(const String& selectors, ExceptionState&);
469 Element* closest(const String& selectors, ExceptionState&); 470 Element* closest(const String& selectors, ExceptionState&);
470 virtual bool shouldAppearIndeterminate() const { return false; } 471 virtual bool shouldAppearIndeterminate() const { return false; }
471 472
472 DOMTokenList& classList(); 473 DOMTokenList& classList();
473 474
474 DOMStringMap& dataset(); 475 DOMStringMap& dataset();
475 476
476 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 477 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
477 virtual bool isDateTimeEditElement() const { return false; } 478 virtual bool isDateTimeEditElement() const { return false; }
478 virtual bool isDateTimeFieldElement() const { return false; } 479 virtual bool isDateTimeFieldElement() const { return false; }
479 virtual bool isPickerIndicatorElement() const { return false; } 480 virtual bool isPickerIndicatorElement() const { return false; }
480 #endif 481 #endif
481 482
482 virtual bool isFormControlElement() const { return false; } 483 virtual bool isFormControlElement() const { return false; }
483 virtual bool isSpinButtonElement() const { return false; } 484 virtual bool isSpinButtonElement() const { return false; }
484 virtual bool isTextFormControl() const { return false; } 485 virtual bool isTextFormControl() const { return false; }
485 virtual bool isOptionalFormControl() const { return false; } 486 virtual bool isOptionalFormControl() const { return false; }
486 virtual bool isRequiredFormControl() const { return false; } 487 virtual bool isRequiredFormControl() const { return false; }
487 virtual bool isDefaultButtonForForm() const { return false; }
488 virtual bool willValidate() const { return false; } 488 virtual bool willValidate() const { return false; }
489 virtual bool isValidElement() { return false; } 489 virtual bool isValidElement() { return false; }
490 virtual bool isInRange() const { return false; } 490 virtual bool isInRange() const { return false; }
491 virtual bool isOutOfRange() const { return false; } 491 virtual bool isOutOfRange() const { return false; }
492 virtual bool isClearButtonElement() const { return false; } 492 virtual bool isClearButtonElement() const { return false; }
493 493
494 bool canContainRangeEndPoint() const override { return true; } 494 bool canContainRangeEndPoint() const override { return true; }
495 495
496 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 496 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
497 // to event listeners, and prevents DOMActivate events from being sent at al l. 497 // to event listeners, and prevents DOMActivate events from being sent at al l.
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 946 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
947 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 947 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
948 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 948 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
949 { \ 949 { \
950 return adoptRefWillBeNoop(new T(tagName, document)); \ 950 return adoptRefWillBeNoop(new T(tagName, document)); \
951 } 951 }
952 952
953 } // namespace blink 953 } // namespace blink
954 954
955 #endif // Element_h 955 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698