| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class ElementAnimations; | 45 class ElementAnimations; |
| 46 class Attr; | 46 class Attr; |
| 47 class Attribute; | 47 class Attribute; |
| 48 class CSSStyleDeclaration; | 48 class CSSStyleDeclaration; |
| 49 class ClientRect; | 49 class ClientRect; |
| 50 class ClientRectList; | 50 class ClientRectList; |
| 51 class CompositorMutation; | 51 class CompositorMutation; |
| 52 class V0CustomElementDefinition; | 52 class CustomElementDefinition; |
| 53 class DOMStringMap; | 53 class DOMStringMap; |
| 54 class DOMTokenList; | 54 class DOMTokenList; |
| 55 class Dictionary; | 55 class Dictionary; |
| 56 class ElementRareData; | 56 class ElementRareData; |
| 57 class ElementShadow; | 57 class ElementShadow; |
| 58 class ExceptionState; | 58 class ExceptionState; |
| 59 class Image; | 59 class Image; |
| 60 class IntSize; | 60 class IntSize; |
| 61 class Locale; | 61 class Locale; |
| 62 class MutableStylePropertySet; | 62 class MutableStylePropertySet; |
| 63 class NodeIntersectionObserverData; | 63 class NodeIntersectionObserverData; |
| 64 class PropertySetCSSStyleDeclaration; | 64 class PropertySetCSSStyleDeclaration; |
| 65 class PseudoElement; | 65 class PseudoElement; |
| 66 class ResizeObservation; | 66 class ResizeObservation; |
| 67 class ResizeObserver; | 67 class ResizeObserver; |
| 68 class ScrollState; | 68 class ScrollState; |
| 69 class ScrollStateCallback; | 69 class ScrollStateCallback; |
| 70 class ScrollToOptions; | 70 class ScrollToOptions; |
| 71 class ShadowRoot; | 71 class ShadowRoot; |
| 72 class ShadowRootInit; | 72 class ShadowRootInit; |
| 73 class StylePropertySet; | 73 class StylePropertySet; |
| 74 class StylePropertyMap; | 74 class StylePropertyMap; |
| 75 class V0CustomElementDefinition; |
| 75 | 76 |
| 76 enum SpellcheckAttributeState { | 77 enum SpellcheckAttributeState { |
| 77 SpellcheckAttributeTrue, | 78 SpellcheckAttributeTrue, |
| 78 SpellcheckAttributeFalse, | 79 SpellcheckAttributeFalse, |
| 79 SpellcheckAttributeDefault | 80 SpellcheckAttributeDefault |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 enum ElementFlags { | 83 enum ElementFlags { |
| 83 TabIndexWasSetExplicitly = 1 << 0, | 84 TabIndexWasSetExplicitly = 1 << 0, |
| 84 StyleAffectedByEmpty = 1 << 1, | 85 StyleAffectedByEmpty = 1 << 1, |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 511 |
| 511 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched | 512 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched |
| 512 // to event listeners, and prevents DOMActivate events from being sent at al
l. | 513 // to event listeners, and prevents DOMActivate events from being sent at al
l. |
| 513 virtual bool isDisabledFormControl() const { return false; } | 514 virtual bool isDisabledFormControl() const { return false; } |
| 514 | 515 |
| 515 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } | 516 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } |
| 516 void setHasPendingResources() { setElementFlag(HasPendingResources); } | 517 void setHasPendingResources() { setElementFlag(HasPendingResources); } |
| 517 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } | 518 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } |
| 518 virtual void buildPendingResource() { } | 519 virtual void buildPendingResource() { } |
| 519 | 520 |
| 520 void setCustomElementDefinition(V0CustomElementDefinition*); | 521 void v0SetCustomElementDefinition(V0CustomElementDefinition*); |
| 521 V0CustomElementDefinition* customElementDefinition() const; | 522 V0CustomElementDefinition* v0CustomElementDefinition() const; |
| 523 |
| 524 void setCustomElementDefinition(CustomElementDefinition*); |
| 525 CustomElementDefinition* customElementDefinition() const; |
| 522 | 526 |
| 523 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } | 527 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } |
| 524 void setContainsFullScreenElement(bool); | 528 void setContainsFullScreenElement(bool); |
| 525 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 529 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 526 | 530 |
| 527 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 531 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
| 528 void setIsInTopLayer(bool); | 532 void setIsInTopLayer(bool); |
| 529 | 533 |
| 530 void requestPointerLock(); | 534 void requestPointerLock(); |
| 531 | 535 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 static T* create(const QualifiedName&, Document&) | 982 static T* create(const QualifiedName&, Document&) |
| 979 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 983 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 980 T* T::create(const QualifiedName& tagName, Document& document) \ | 984 T* T::create(const QualifiedName& tagName, Document& document) \ |
| 981 { \ | 985 { \ |
| 982 return new T(tagName, document); \ | 986 return new T(tagName, document); \ |
| 983 } | 987 } |
| 984 | 988 |
| 985 } // namespace blink | 989 } // namespace blink |
| 986 | 990 |
| 987 #endif // Element_h | 991 #endif // Element_h |
| OLD | NEW |