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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 String outerHTML() const; | 446 String outerHTML() const; |
447 void setInnerHTML(const String&, ExceptionState&); | 447 void setInnerHTML(const String&, ExceptionState&); |
448 void setOuterHTML(const String&, ExceptionState&); | 448 void setOuterHTML(const String&, ExceptionState&); |
449 | 449 |
450 Element* insertAdjacentElement(const String& where, Element* newChild, Excep
tionState&); | 450 Element* insertAdjacentElement(const String& where, Element* newChild, Excep
tionState&); |
451 void insertAdjacentText(const String& where, const String& text, ExceptionSt
ate&); | 451 void insertAdjacentText(const String& where, const String& text, ExceptionSt
ate&); |
452 void insertAdjacentHTML(const String& where, const String& html, ExceptionSt
ate&); | 452 void insertAdjacentHTML(const String& where, const String& html, ExceptionSt
ate&); |
453 | 453 |
454 void setPointerCapture(int pointerId, ExceptionState&); | 454 void setPointerCapture(int pointerId, ExceptionState&); |
455 void releasePointerCapture(int pointerId, ExceptionState&); | 455 void releasePointerCapture(int pointerId, ExceptionState&); |
456 bool hasPointerCapture(int pointerId); | 456 |
| 457 // Returns true iff the element would capture the next pointer event. This |
| 458 // is true between a setPointerCapture call and a releasePointerCapture (or |
| 459 // implicit release) call: |
| 460 // https://w3c.github.io/pointerevents/#dom-element-haspointercapture |
| 461 bool hasPointerCapture(int pointerId) const; |
| 462 |
| 463 // Returns true iff the element has received a gotpointercapture event for |
| 464 // the |pointerId| but hasn't yet received a lostpointercapture event for |
| 465 // the same id. The time window during which this is true is "delayed" from |
| 466 // (but overlapping with) the time window for hasPointerCapture(): |
| 467 // https://w3c.github.io/pointerevents/#process-pending-pointer-capture |
| 468 bool hasProcessedPointerCapture(int pointerId) const; |
457 | 469 |
458 String textFromChildren(); | 470 String textFromChildren(); |
459 | 471 |
460 virtual String title() const { return String(); } | 472 virtual String title() const { return String(); } |
461 virtual String defaultToolTip() const { return String(); } | 473 virtual String defaultToolTip() const { return String(); } |
462 | 474 |
463 virtual const AtomicString& shadowPseudoId() const; | 475 virtual const AtomicString& shadowPseudoId() const; |
464 // The specified string must start with "-webkit-" or "-internal-". The | 476 // The specified string must start with "-webkit-" or "-internal-". The |
465 // former can be used as a selector in any places, and the latter can be | 477 // former can be used as a selector in any places, and the latter can be |
466 // used only in UA stylesheet. | 478 // used only in UA stylesheet. |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 static T* create(const QualifiedName&, Document&) | 1002 static T* create(const QualifiedName&, Document&) |
991 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1003 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
992 T* T::create(const QualifiedName& tagName, Document& document) \ | 1004 T* T::create(const QualifiedName& tagName, Document& document) \ |
993 { \ | 1005 { \ |
994 return new T(tagName, document); \ | 1006 return new T(tagName, document); \ |
995 } | 1007 } |
996 | 1008 |
997 } // namespace blink | 1009 } // namespace blink |
998 | 1010 |
999 #endif // Element_h | 1011 #endif // Element_h |
OLD | NEW |