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

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

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode 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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool defaultHandled() const { return m_defaultHandled; } 187 bool defaultHandled() const { return m_defaultHandled; }
188 void setDefaultHandled() { m_defaultHandled = true; } 188 void setDefaultHandled() { m_defaultHandled = true; }
189 189
190 bool cancelBubble(ExecutionContext* = nullptr) const { return m_cancelBubble ; } 190 bool cancelBubble(ExecutionContext* = nullptr) const { return m_cancelBubble ; }
191 void setCancelBubble(ExecutionContext*, bool); 191 void setCancelBubble(ExecutionContext*, bool);
192 192
193 Event* underlyingEvent() const { return m_underlyingEvent.get(); } 193 Event* underlyingEvent() const { return m_underlyingEvent.get(); }
194 void setUnderlyingEvent(Event*); 194 void setUnderlyingEvent(Event*);
195 195
196 bool hasEventPath() { return m_eventPath; } 196 bool hasEventPath() { return m_eventPath; }
197 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } 197 EventPath& eventPath() { DCHECK(m_eventPath); return *m_eventPath; }
198 void initEventPath(Node&); 198 void initEventPath(Node&);
199 199
200 HeapVector<Member<EventTarget>> path(ScriptState*) const; 200 HeapVector<Member<EventTarget>> path(ScriptState*) const;
201 HeapVector<Member<EventTarget>> composedPath(ScriptState*) const; 201 HeapVector<Member<EventTarget>> composedPath(ScriptState*) const;
202 202
203 bool isBeingDispatched() const { return eventPhase(); } 203 bool isBeingDispatched() const { return eventPhase(); }
204 204
205 // Events that must not leak across isolated world, similar to how 205 // Events that must not leak across isolated world, similar to how
206 // ErrorEvent behaves, can override this method. 206 // ErrorEvent behaves, can override this method.
207 virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const { return t rue; } 207 virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const { return t rue; }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // WebInputEvent instance. 270 // WebInputEvent instance.
271 double m_platformTimeStamp; 271 double m_platformTimeStamp;
272 }; 272 };
273 273
274 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 274 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
275 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName()) 275 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName())
276 276
277 } // namespace blink 277 } // namespace blink
278 278
279 #endif // Event_h 279 #endif // Event_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/ErrorEvent.cpp ('k') | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698