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

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

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698