| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 virtual bool isDisabledFormControl() const { return false; } | 451 virtual bool isDisabledFormControl() const { return false; } |
| 454 | 452 |
| 455 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } | 453 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } |
| 456 void setHasPendingResources() { setElementFlag(HasPendingResources); } | 454 void setHasPendingResources() { setElementFlag(HasPendingResources); } |
| 457 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } | 455 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } |
| 458 virtual void buildPendingResource() { }; | 456 virtual void buildPendingResource() { }; |
| 459 | 457 |
| 460 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); | 458 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); |
| 461 CustomElementDefinition* customElementDefinition() const; | 459 CustomElementDefinition* customElementDefinition() const; |
| 462 | 460 |
| 463 // Mozilla version | |
| 464 static const unsigned short ALLOW_KEYBOARD_INPUT = 1; | |
| 465 void webkitRequestFullScreen(unsigned short flags); | |
| 466 | |
| 467 // W3C version | |
| 468 void webkitRequestFullscreen(); | |
| 469 | |
| 470 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } | 461 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } |
| 471 void setContainsFullScreenElement(bool); | 462 void setContainsFullScreenElement(bool); |
| 472 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 463 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 473 | 464 |
| 474 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 465 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
| 475 void setIsInTopLayer(bool); | 466 void setIsInTopLayer(bool); |
| 476 | 467 |
| 477 void requestPointerLock(); | 468 void requestPointerLock(); |
| 478 | 469 |
| 479 bool isSpellCheckingEnabled() const; | 470 bool isSpellCheckingEnabled() const; |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 851 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 861 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 852 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 862 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 853 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 863 { \ | 854 { \ |
| 864 return adoptRefWillBeNoop(new T(tagName, document)); \ | 855 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 865 } | 856 } |
| 866 | 857 |
| 867 } // namespace | 858 } // namespace |
| 868 | 859 |
| 869 #endif | 860 #endif |
| OLD | NEW |