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

Side by Side Diff: third_party/WebKit/Source/core/events/TouchEventContext.cpp

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) 2014 Google Inc. All Rights Reserved. 2 * Copyright (C) 2014 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 28 matching lines...) Expand all
39 39
40 TouchEventContext::TouchEventContext() 40 TouchEventContext::TouchEventContext()
41 : m_touches(TouchList::create()) 41 : m_touches(TouchList::create())
42 , m_targetTouches(TouchList::create()) 42 , m_targetTouches(TouchList::create())
43 , m_changedTouches(TouchList::create()) 43 , m_changedTouches(TouchList::create())
44 { 44 {
45 } 45 }
46 46
47 void TouchEventContext::handleLocalEvents(Event& event) const 47 void TouchEventContext::handleLocalEvents(Event& event) const
48 { 48 {
49 ASSERT(event.isTouchEvent()); 49 DCHECK(event.isTouchEvent());
50 TouchEvent& touchEvent = toTouchEvent(event); 50 TouchEvent& touchEvent = toTouchEvent(event);
51 touchEvent.setTouches(m_touches); 51 touchEvent.setTouches(m_touches);
52 touchEvent.setTargetTouches(m_targetTouches); 52 touchEvent.setTargetTouches(m_targetTouches);
53 touchEvent.setChangedTouches(m_changedTouches); 53 touchEvent.setChangedTouches(m_changedTouches);
54 } 54 }
55 55
56 DEFINE_TRACE(TouchEventContext) 56 DEFINE_TRACE(TouchEventContext)
57 { 57 {
58 visitor->trace(m_touches); 58 visitor->trace(m_touches);
59 visitor->trace(m_targetTouches); 59 visitor->trace(m_targetTouches);
60 visitor->trace(m_changedTouches); 60 visitor->trace(m_changedTouches);
61 } 61 }
62 62
63 } // namespace blink 63 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698