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

Unified Diff: third_party/WebKit/Source/core/events/EventPath.h

Issue 2555743005: Add iterator support to blink::EventPath. (Closed)
Patch Set: Exposed the vector Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/EventPath.h
diff --git a/third_party/WebKit/Source/core/events/EventPath.h b/third_party/WebKit/Source/core/events/EventPath.h
index 544c77f7a85d51ac9c7eb4344d5a9c294f36c1a7..8aafe26e7c18ecbd5764c647d4ae32bcc77d40ba 100644
--- a/third_party/WebKit/Source/core/events/EventPath.h
+++ b/third_party/WebKit/Source/core/events/EventPath.h
@@ -52,6 +52,12 @@ class CORE_EXPORT EventPath final : public GarbageCollected<EventPath> {
void initializeWith(Node&, Event*);
+ const HeapVector<NodeEventContext>& nodeEventContexts() const {
+ return m_nodeEventContexts;
+ }
+ HeapVector<NodeEventContext>& nodeEventContexts() {
+ return m_nodeEventContexts;
+ }
NodeEventContext& operator[](size_t index) {
return m_nodeEventContexts[index];
}
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698