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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 UseCounter::PointerOverOutFired)) { 630 UseCounter::PointerOverOutFired)) {
631 } 631 }
632 632
633 ExecutionContext* context = getExecutionContext(); 633 ExecutionContext* context = getExecutionContext();
634 if (!context) 634 if (!context)
635 return false; 635 return false;
636 636
637 size_t i = 0; 637 size_t i = 0;
638 size_t size = entry.size(); 638 size_t size = entry.size();
639 if (!d->firingEventIterators) 639 if (!d->firingEventIterators)
640 d->firingEventIterators = wrapUnique(new FiringEventIteratorVector); 640 d->firingEventIterators = WTF::wrapUnique(new FiringEventIteratorVector);
641 d->firingEventIterators->append(FiringEventIterator(event->type(), i, size)); 641 d->firingEventIterators->append(FiringEventIterator(event->type(), i, size));
642 642
643 double blockedEventThreshold = blockedEventsWarningThreshold(context, event); 643 double blockedEventThreshold = blockedEventsWarningThreshold(context, event);
644 double now = 0.0; 644 double now = 0.0;
645 bool shouldReportBlockedEvent = false; 645 bool shouldReportBlockedEvent = false;
646 if (blockedEventThreshold) { 646 if (blockedEventThreshold) {
647 now = WTF::monotonicallyIncreasingTime(); 647 now = WTF::monotonicallyIncreasingTime();
648 shouldReportBlockedEvent = 648 shouldReportBlockedEvent =
649 now - event->platformTimeStamp() > blockedEventThreshold; 649 now - event->platformTimeStamp() > blockedEventThreshold;
650 } 650 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 // they have one less listener to invoke. 750 // they have one less listener to invoke.
751 if (d->firingEventIterators) { 751 if (d->firingEventIterators) {
752 for (const auto& iterator : *d->firingEventIterators) { 752 for (const auto& iterator : *d->firingEventIterators) {
753 iterator.iterator = 0; 753 iterator.iterator = 0;
754 iterator.end = 0; 754 iterator.end = 0;
755 } 755 }
756 } 756 }
757 } 757 }
758 758
759 } // namespace blink 759 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventFactory.h ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698