| 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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 virtual bool isDisabledFormControl() const { return false; } | 459 virtual bool isDisabledFormControl() const { return false; } |
| 460 | 460 |
| 461 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } | 461 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } |
| 462 void setHasPendingResources() { setElementFlag(HasPendingResources); } | 462 void setHasPendingResources() { setElementFlag(HasPendingResources); } |
| 463 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } | 463 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } |
| 464 virtual void buildPendingResource() { }; | 464 virtual void buildPendingResource() { }; |
| 465 | 465 |
| 466 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); | 466 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); |
| 467 CustomElementDefinition* customElementDefinition() const; | 467 CustomElementDefinition* customElementDefinition() const; |
| 468 | 468 |
| 469 enum { | 469 // Mozilla version |
| 470 ALLOW_KEYBOARD_INPUT = 1 << 0, | 470 static const unsigned short ALLOW_KEYBOARD_INPUT = 1; |
| 471 LEGACY_MOZILLA_REQUEST = 1 << 1, | 471 void webkitRequestFullScreen(unsigned short flags); |
| 472 }; | |
| 473 | 472 |
| 474 void webkitRequestFullScreen(unsigned short flags); | 473 // W3C version |
| 474 void webkitRequestFullscreen(); |
| 475 |
| 475 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } | 476 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } |
| 476 void setContainsFullScreenElement(bool); | 477 void setContainsFullScreenElement(bool); |
| 477 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 478 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 478 | 479 |
| 479 // W3C API | |
| 480 void webkitRequestFullscreen(); | |
| 481 | |
| 482 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 480 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
| 483 void setIsInTopLayer(bool); | 481 void setIsInTopLayer(bool); |
| 484 | 482 |
| 485 void webkitRequestPointerLock(); | 483 void webkitRequestPointerLock(); |
| 486 void requestPointerLock(); | 484 void requestPointerLock(); |
| 487 | 485 |
| 488 bool isSpellCheckingEnabled() const; | 486 bool isSpellCheckingEnabled() const; |
| 489 | 487 |
| 490 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | 488 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. |
| 491 PassRefPtr<RenderStyle> styleForRenderer(); | 489 PassRefPtr<RenderStyle> styleForRenderer(); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 882 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 885 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 883 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 886 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 884 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 887 { \ | 885 { \ |
| 888 return adoptRefWillBeNoop(new T(tagName, document)); \ | 886 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 889 } | 887 } |
| 890 | 888 |
| 891 } // namespace | 889 } // namespace |
| 892 | 890 |
| 893 #endif | 891 #endif |
| OLD | NEW |