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

Side by Side Diff: Source/core/dom/EventListenerMap.h

Issue 18836002: Implement 'mouseenter' and 'mouseleave' from DOM Level 3 Events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Attribute tests. Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/dom/EventListenerMap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2012 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2012 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class EventTarget; 43 class EventTarget;
44 44
45 typedef Vector<RegisteredEventListener, 1> EventListenerVector; 45 typedef Vector<RegisteredEventListener, 1> EventListenerVector;
46 46
47 class EventListenerMap { 47 class EventListenerMap {
48 public: 48 public:
49 EventListenerMap(); 49 EventListenerMap();
50 50
51 bool isEmpty() const { return m_entries.isEmpty(); } 51 bool isEmpty() const { return m_entries.isEmpty(); }
52 bool contains(const AtomicString& eventType) const; 52 bool contains(const AtomicString& eventType) const;
53 bool containsCapturing(const AtomicString& eventType) const;
53 54
54 void clear(); 55 void clear();
55 bool add(const AtomicString& eventType, PassRefPtr<EventListener>, bool useC apture); 56 bool add(const AtomicString& eventType, PassRefPtr<EventListener>, bool useC apture);
56 bool remove(const AtomicString& eventType, EventListener*, bool useCapture, size_t& indexOfRemovedListener); 57 bool remove(const AtomicString& eventType, EventListener*, bool useCapture, size_t& indexOfRemovedListener);
57 EventListenerVector* find(const AtomicString& eventType); 58 EventListenerVector* find(const AtomicString& eventType);
58 Vector<AtomicString> eventTypes() const; 59 Vector<AtomicString> eventTypes() const;
59 60
60 void removeFirstEventListenerCreatedFromMarkup(const AtomicString& eventType ); 61 void removeFirstEventListenerCreatedFromMarkup(const AtomicString& eventType );
61 void copyEventListenersNotCreatedFromMarkupToTarget(EventTarget*); 62 void copyEventListenersNotCreatedFromMarkupToTarget(EventTarget*);
62 63
(...skipping 26 matching lines...) Expand all
89 unsigned m_index; 90 unsigned m_index;
90 }; 91 };
91 92
92 #ifdef NDEBUG 93 #ifdef NDEBUG
93 inline void EventListenerMap::assertNoActiveIterators() { } 94 inline void EventListenerMap::assertNoActiveIterators() { }
94 #endif 95 #endif
95 96
96 } // namespace WebCore 97 } // namespace WebCore
97 98
98 #endif // EventListenerMap_h 99 #endif // EventListenerMap_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/dom/EventListenerMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698