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

Side by Side Diff: third_party/WebKit/Source/core/events/EventPath.h

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 26 matching lines...) Expand all
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Event; 40 class Event;
41 class EventTarget; 41 class EventTarget;
42 class Node; 42 class Node;
43 class TouchEvent; 43 class TouchEvent;
44 class TouchList; 44 class TouchList;
45 class TreeScope; 45 class TreeScope;
46 46
47 class CORE_EXPORT EventPath final : public GarbageCollectedFinalized<EventPath> { 47 class CORE_EXPORT EventPath final : public GarbageCollected<EventPath> {
48 WTF_MAKE_NONCOPYABLE(EventPath); 48 WTF_MAKE_NONCOPYABLE(EventPath);
49 public: 49 public:
50 explicit EventPath(Node&, Event* = nullptr); 50 explicit EventPath(Node&, Event* = nullptr);
51 51
52 void initializeWith(Node&, Event*); 52 void initializeWith(Node&, Event*);
53 53
54 NodeEventContext& operator[](size_t index) { return m_nodeEventContexts[inde x]; } 54 NodeEventContext& operator[](size_t index) { return m_nodeEventContexts[inde x]; }
55 const NodeEventContext& operator[](size_t index) const { return m_nodeEventC ontexts[index]; } 55 const NodeEventContext& operator[](size_t index) const { return m_nodeEventC ontexts[index]; }
56 NodeEventContext& at(size_t index) { return m_nodeEventContexts[index]; } 56 NodeEventContext& at(size_t index) { return m_nodeEventContexts[index]; }
57 NodeEventContext& last() { return m_nodeEventContexts[size() - 1]; } 57 NodeEventContext& last() { return m_nodeEventContexts[size() - 1]; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 HeapVector<NodeEventContext> m_nodeEventContexts; 104 HeapVector<NodeEventContext> m_nodeEventContexts;
105 Member<Node> m_node; 105 Member<Node> m_node;
106 Member<Event> m_event; 106 Member<Event> m_event;
107 HeapVector<Member<TreeScopeEventContext>> m_treeScopeEventContexts; 107 HeapVector<Member<TreeScopeEventContext>> m_treeScopeEventContexts;
108 Member<WindowEventContext> m_windowEventContext; 108 Member<WindowEventContext> m_windowEventContext;
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif 113 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698