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

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

Issue 1980113002: Add UMA metric for tracking root level listeners for blocking touch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add comments 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) 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, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void Event::setTarget(EventTarget* target) 247 void Event::setTarget(EventTarget* target)
248 { 248 {
249 if (m_target == target) 249 if (m_target == target)
250 return; 250 return;
251 251
252 m_target = target; 252 m_target = target;
253 if (m_target) 253 if (m_target)
254 receivedTarget(); 254 receivedTarget();
255 } 255 }
256 256
257 void Event::doneDispatchingEventAtCurrentTarget()
258 {
259 }
260
257 void Event::receivedTarget() 261 void Event::receivedTarget()
258 { 262 {
259 } 263 }
260 264
261 void Event::setUnderlyingEvent(Event* ue) 265 void Event::setUnderlyingEvent(Event* ue)
262 { 266 {
263 // Prohibit creation of a cycle -- just do nothing in that case. 267 // Prohibit creation of a cycle -- just do nothing in that case.
264 for (Event* e = ue; e; e = e->underlyingEvent()) 268 for (Event* e = ue; e; e = e->underlyingEvent())
265 if (e == this) 269 if (e == this)
266 return; 270 return;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 373
370 DEFINE_TRACE(Event) 374 DEFINE_TRACE(Event)
371 { 375 {
372 visitor->trace(m_currentTarget); 376 visitor->trace(m_currentTarget);
373 visitor->trace(m_target); 377 visitor->trace(m_target);
374 visitor->trace(m_underlyingEvent); 378 visitor->trace(m_underlyingEvent);
375 visitor->trace(m_eventPath); 379 visitor->trace(m_eventPath);
376 } 380 }
377 381
378 } // namespace blink 382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698