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

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

Issue 449133003: Move Web-facing fullscreen APIs to DocumentFullscreen and ElementFullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
100 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy);
101 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut);
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste);
103 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
104 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); 104 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart);
105 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 105 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
106 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 106 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
107 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); 107 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
108 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); 108 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
109 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
110 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
111 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); 109 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel);
112 110
113 bool hasAttribute(const QualifiedName&) const; 111 bool hasAttribute(const QualifiedName&) const;
114 const AtomicString& getAttribute(const QualifiedName&) const; 112 const AtomicString& getAttribute(const QualifiedName&) const;
115 113
116 // Passing nullAtom as the second parameter removes the attribute when calli ng either of these set methods. 114 // Passing nullAtom as the second parameter removes the attribute when calli ng either of these set methods.
117 void setAttribute(const QualifiedName&, const AtomicString& value); 115 void setAttribute(const QualifiedName&, const AtomicString& value);
118 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value); 116 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value);
119 117
120 void removeAttribute(const QualifiedName&); 118 void removeAttribute(const QualifiedName&);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 virtual bool isDisabledFormControl() const { return false; } 454 virtual bool isDisabledFormControl() const { return false; }
457 455
458 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); } 456 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); }
459 void setHasPendingResources() { setElementFlag(HasPendingResources); } 457 void setHasPendingResources() { setElementFlag(HasPendingResources); }
460 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } 458 void clearHasPendingResources() { clearElementFlag(HasPendingResources); }
461 virtual void buildPendingResource() { }; 459 virtual void buildPendingResource() { };
462 460
463 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); 461 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>);
464 CustomElementDefinition* customElementDefinition() const; 462 CustomElementDefinition* customElementDefinition() const;
465 463
466 // Mozilla version
467 static const unsigned short ALLOW_KEYBOARD_INPUT = 1;
468 void webkitRequestFullScreen(unsigned short flags);
469
470 // W3C version
471 void webkitRequestFullscreen();
472
473 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); } 464 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); }
474 void setContainsFullScreenElement(bool); 465 void setContainsFullScreenElement(bool);
475 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); 466 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool);
476 467
477 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } 468 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); }
478 void setIsInTopLayer(bool); 469 void setIsInTopLayer(bool);
479 470
480 void requestPointerLock(); 471 void requestPointerLock();
481 472
482 bool isSpellCheckingEnabled() const; 473 bool isSpellCheckingEnabled() const;
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 850 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
860 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 851 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
861 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 852 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
862 { \ 853 { \
863 return adoptRefWillBeNoop(new T(tagName, document)); \ 854 return adoptRefWillBeNoop(new T(tagName, document)); \
864 } 855 }
865 856
866 } // namespace 857 } // namespace
867 858
868 #endif 859 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698