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

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

Issue 2818083002: Rewrite references to "wtf/" to "platform/wtf/" in the rest of core/. (Closed)
Patch Set: Rebase. Created 3 years, 8 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) 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 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) 8 * Copyright (C) 2011 Andreas Kling (kling@webkit.org)
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 15 matching lines...) Expand all
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 * 30 *
31 */ 31 */
32 32
33 #include "core/events/EventListenerMap.h" 33 #include "core/events/EventListenerMap.h"
34 34
35 #include "core/events/EventTarget.h" 35 #include "core/events/EventTarget.h"
36 #include "wtf/StdLibExtras.h" 36 #include "platform/wtf/StdLibExtras.h"
37 #include "wtf/Vector.h" 37 #include "platform/wtf/Vector.h"
38 38
39 #if DCHECK_IS_ON() 39 #if DCHECK_IS_ON()
40 #include "wtf/Threading.h" 40 #include "platform/wtf/Threading.h"
41 #include "wtf/ThreadingPrimitives.h" 41 #include "platform/wtf/ThreadingPrimitives.h"
42 #endif 42 #endif
43 43
44 namespace blink { 44 namespace blink {
45 45
46 #if DCHECK_IS_ON() 46 #if DCHECK_IS_ON()
47 static Mutex& ActiveIteratorCountMutex() { 47 static Mutex& ActiveIteratorCountMutex() {
48 DEFINE_THREAD_SAFE_STATIC_LOCAL(Mutex, mutex, new Mutex()); 48 DEFINE_THREAD_SAFE_STATIC_LOCAL(Mutex, mutex, new Mutex());
49 return mutex; 49 return mutex;
50 } 50 }
51 51
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 EventListenerVector& listeners = *map_->entries_[entry_index_].second; 243 EventListenerVector& listeners = *map_->entries_[entry_index_].second;
244 if (index_ < listeners.size()) 244 if (index_ < listeners.size())
245 return listeners[index_++].Listener(); 245 return listeners[index_++].Listener();
246 index_ = 0; 246 index_ = 0;
247 } 247 }
248 248
249 return nullptr; 249 return nullptr;
250 } 250 }
251 251
252 } // namespace blink 252 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventListenerMap.h ('k') | third_party/WebKit/Source/core/events/EventPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698