| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/page/FocusType.h" | 36 #include "core/page/FocusType.h" |
| 37 #include "platform/scroll/ScrollTypes.h" | 37 #include "platform/scroll/ScrollTypes.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class ActiveAnimations; | 41 class ActiveAnimations; |
| 42 class Attr; | 42 class Attr; |
| 43 class Attribute; | 43 class Attribute; |
| 44 class ClientRect; | 44 class ClientRect; |
| 45 class ClientRectList; | 45 class ClientRectList; |
| 46 class CustomElementDefinition; |
| 46 class DOMStringMap; | 47 class DOMStringMap; |
| 47 class DOMTokenList; | 48 class DOMTokenList; |
| 48 class ElementRareData; | 49 class ElementRareData; |
| 49 class ElementShadow; | 50 class ElementShadow; |
| 50 class ExceptionState; | 51 class ExceptionState; |
| 51 class Image; | 52 class Image; |
| 52 class InputMethodContext; | 53 class InputMethodContext; |
| 53 class IntSize; | 54 class IntSize; |
| 54 class Locale; | 55 class Locale; |
| 55 class MutableStylePropertySet; | 56 class MutableStylePropertySet; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched | 516 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched |
| 516 // to event listeners, and prevents DOMActivate events from being sent at al
l. | 517 // to event listeners, and prevents DOMActivate events from being sent at al
l. |
| 517 virtual bool isDisabledFormControl() const { return false; } | 518 virtual bool isDisabledFormControl() const { return false; } |
| 518 | 519 |
| 519 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } | 520 bool hasPendingResources() const { return hasElementFlag(HasPendingResources
); } |
| 520 void setHasPendingResources() { setElementFlag(HasPendingResources); } | 521 void setHasPendingResources() { setElementFlag(HasPendingResources); } |
| 521 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } | 522 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } |
| 522 virtual void buildPendingResource() { }; | 523 virtual void buildPendingResource() { }; |
| 523 | 524 |
| 525 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); |
| 526 CustomElementDefinition* customElementDefinition() const; |
| 527 |
| 524 enum { | 528 enum { |
| 525 ALLOW_KEYBOARD_INPUT = 1 << 0, | 529 ALLOW_KEYBOARD_INPUT = 1 << 0, |
| 526 LEGACY_MOZILLA_REQUEST = 1 << 1, | 530 LEGACY_MOZILLA_REQUEST = 1 << 1, |
| 527 }; | 531 }; |
| 528 | 532 |
| 529 void webkitRequestFullScreen(unsigned short flags); | 533 void webkitRequestFullScreen(unsigned short flags); |
| 530 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } | 534 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } |
| 531 void setContainsFullScreenElement(bool); | 535 void setContainsFullScreenElement(bool); |
| 532 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 536 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 533 | 537 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 940 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
| 937 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 941 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
| 938 | 942 |
| 939 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 943 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
| 940 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 944 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
| 941 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 945 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 942 | 946 |
| 943 } // namespace | 947 } // namespace |
| 944 | 948 |
| 945 #endif | 949 #endif |
| OLD | NEW |