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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 enum SpellcheckAttributeState { | 77 enum SpellcheckAttributeState { |
78 SpellcheckAttributeTrue, | 78 SpellcheckAttributeTrue, |
79 SpellcheckAttributeFalse, | 79 SpellcheckAttributeFalse, |
80 SpellcheckAttributeDefault | 80 SpellcheckAttributeDefault |
81 }; | 81 }; |
82 | 82 |
83 enum ElementFlags { | 83 enum ElementFlags { |
84 TabIndexWasSetExplicitly = 1 << 0, | 84 TabIndexWasSetExplicitly = 1 << 0, |
85 StyleAffectedByEmpty = 1 << 1, | 85 StyleAffectedByEmpty = 1 << 1, |
86 IsInCanvasSubtree = 1 << 2, | 86 IsInCanvasSubtree = 1 << 2, |
87 ContainsFullScreenElement = 1 << 3, | 87 IsInTopLayer = 1 << 3, |
88 IsInTopLayer = 1 << 4, | 88 IsFullscreen = 1 << 4, |
89 HasPendingResources = 1 << 5, | 89 HasPendingResources = 1 << 5, |
90 AlreadySpellChecked = 1 << 6, | 90 AlreadySpellChecked = 1 << 6, |
91 | 91 |
92 NumberOfElementFlags = | 92 NumberOfElementFlags = |
93 7, // Required size of bitfield used to store the flags. | 93 7, // Required size of bitfield used to store the flags. |
94 }; | 94 }; |
95 | 95 |
96 enum class ShadowRootType; | 96 enum class ShadowRootType; |
97 | 97 |
98 enum class SelectionBehaviorOnFocus { | 98 enum class SelectionBehaviorOnFocus { |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 void setAlreadySpellChecked(bool value) { | 645 void setAlreadySpellChecked(bool value) { |
646 setElementFlag(AlreadySpellChecked, value); | 646 setElementFlag(AlreadySpellChecked, value); |
647 } | 647 } |
648 | 648 |
649 void v0SetCustomElementDefinition(V0CustomElementDefinition*); | 649 void v0SetCustomElementDefinition(V0CustomElementDefinition*); |
650 V0CustomElementDefinition* v0CustomElementDefinition() const; | 650 V0CustomElementDefinition* v0CustomElementDefinition() const; |
651 | 651 |
652 void setCustomElementDefinition(CustomElementDefinition*); | 652 void setCustomElementDefinition(CustomElementDefinition*); |
653 CustomElementDefinition* customElementDefinition() const; | 653 CustomElementDefinition* customElementDefinition() const; |
654 | 654 |
655 bool containsFullScreenElement() const { | |
656 return hasElementFlag(ContainsFullScreenElement); | |
657 } | |
658 void setContainsFullScreenElement(bool); | |
659 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | |
660 | |
661 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 655 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
662 void setIsInTopLayer(bool); | 656 void setIsInTopLayer(bool); |
663 | 657 |
| 658 bool isFullscreen() const { return hasElementFlag(IsFullscreen); } |
| 659 void setIsFullscreen(bool); |
| 660 |
664 void requestPointerLock(); | 661 void requestPointerLock(); |
665 | 662 |
666 bool isSpellCheckingEnabled() const; | 663 bool isSpellCheckingEnabled() const; |
667 | 664 |
668 // FIXME: public for LayoutTreeBuilder, we shouldn't expose this though. | 665 // FIXME: public for LayoutTreeBuilder, we shouldn't expose this though. |
669 PassRefPtr<ComputedStyle> styleForLayoutObject(); | 666 PassRefPtr<ComputedStyle> styleForLayoutObject(); |
670 | 667 |
671 bool hasID() const; | 668 bool hasID() const; |
672 bool hasClass() const; | 669 bool hasClass() const; |
673 const SpaceSplitString& classNames() const; | 670 const SpaceSplitString& classNames() const; |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1154 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1158 static T* create(const QualifiedName&, Document&) | 1155 static T* create(const QualifiedName&, Document&) |
1159 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1156 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1160 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1157 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1161 return new T(tagName, document); \ | 1158 return new T(tagName, document); \ |
1162 } | 1159 } |
1163 | 1160 |
1164 } // namespace blink | 1161 } // namespace blink |
1165 | 1162 |
1166 #endif // Element_h | 1163 #endif // Element_h |
OLD | NEW |