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

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

Issue 2274253002: Added counters for pointer boundary events fired. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added hasProcessedPendingPointerCapture API. Created 4 years, 3 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
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, as
458 // defined in the spec:
459 // https://w3c.github.io/pointerevents/#dom-element-haspointercapture
460 bool hasPointerCapture(int pointerId) const;
461
462 // Returns true iff the element received a pointer event for the |pointerId|
463 // after reuqesting to capture it. In spec terms, the pending pointer
464 // capture has been processed for this |pointerId|:
465 // https://w3c.github.io/pointerevents/#process-pending-pointer-capture
466 bool hasProcessedPointerCapture(int pointerId) const;
457 467
458 String textFromChildren(); 468 String textFromChildren();
459 469
460 virtual String title() const { return String(); } 470 virtual String title() const { return String(); }
461 virtual String defaultToolTip() const { return String(); } 471 virtual String defaultToolTip() const { return String(); }
462 472
463 virtual const AtomicString& shadowPseudoId() const; 473 virtual const AtomicString& shadowPseudoId() const;
464 // The specified string must start with "-webkit-" or "-internal-". The 474 // 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 475 // former can be used as a selector in any places, and the latter can be
466 // used only in UA stylesheet. 476 // used only in UA stylesheet.
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 static T* create(const QualifiedName&, Document&) 1000 static T* create(const QualifiedName&, Document&)
991 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1001 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
992 T* T::create(const QualifiedName& tagName, Document& document) \ 1002 T* T::create(const QualifiedName& tagName, Document& document) \
993 { \ 1003 { \
994 return new T(tagName, document); \ 1004 return new T(tagName, document); \
995 } 1005 }
996 1006
997 } // namespace blink 1007 } // namespace blink
998 1008
999 #endif // Element_h 1009 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698