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

Side by Side Diff: sky/engine/core/events/EventTarget.h

Issue 879743004: Remove the EventFactory machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/events/EventFactory.h ('k') | sky/engine/core/events/ThreadLocalEventNames.h » ('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, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 14 matching lines...) Expand all
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 * 29 *
30 */ 30 */
31 31
32 #ifndef SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_ 32 #ifndef SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_
33 #define SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_ 33 #define SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_
34 34
35 #include "gen/sky/core/EventInterfaces.h"
36 #include "gen/sky/core/EventNames.h"
37 #include "gen/sky/core/EventTargetInterfaces.h"
38 #include "gen/sky/core/EventTargetNames.h"
39 #include "gen/sky/core/EventTypeNames.h"
35 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" 40 #include "sky/engine/bindings/core/v8/ScriptWrappable.h"
36 #include "sky/engine/core/events/EventListenerMap.h" 41 #include "sky/engine/core/events/EventListenerMap.h"
37 #include "sky/engine/core/events/ThreadLocalEventNames.h"
38 #include "sky/engine/platform/heap/Handle.h" 42 #include "sky/engine/platform/heap/Handle.h"
43 #include "sky/engine/wtf/text/AtomicString.h"
39 44
40 namespace blink { 45 namespace blink {
41 46
42 class LocalDOMWindow; 47 class LocalDOMWindow;
43 class Event; 48 class Event;
44 class ExceptionState; 49 class ExceptionState;
45 class Node; 50 class Node;
46 51
47 struct FiringEventIterator { 52 struct FiringEventIterator {
48 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end) 53 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro 200 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro
196 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass) 201 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass)
197 #endif 202 #endif
198 203
199 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted. 204 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted.
200 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly. 205 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly.
201 // Both of these macros are meant to be placed just before the "public:" section of the class declaration. 206 // Both of these macros are meant to be placed just before the "public:" section of the class declaration.
202 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>) 207 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>)
203 208
204 #endif // SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_ 209 #endif // SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_
OLDNEW
« no previous file with comments | « sky/engine/core/events/EventFactory.h ('k') | sky/engine/core/events/ThreadLocalEventNames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698