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

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

Issue 676723003: Remove postMessage, MessageChannel and MessagePort. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/CustomEvent.h ('k') | sky/engine/core/events/EventTarget.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, 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 24 matching lines...) Expand all
35 #include "bindings/core/v8/ScriptWrappable.h" 35 #include "bindings/core/v8/ScriptWrappable.h"
36 #include "core/events/EventListenerMap.h" 36 #include "core/events/EventListenerMap.h"
37 #include "core/events/ThreadLocalEventNames.h" 37 #include "core/events/ThreadLocalEventNames.h"
38 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class LocalDOMWindow; 42 class LocalDOMWindow;
43 class Event; 43 class Event;
44 class ExceptionState; 44 class ExceptionState;
45 class MessagePort;
46 class Node; 45 class Node;
47 46
48 struct FiringEventIterator { 47 struct FiringEventIterator {
49 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end) 48 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end)
50 : eventType(eventType) 49 : eventType(eventType)
51 , iterator(iterator) 50 , iterator(iterator)
52 , end(end) 51 , end(end)
53 { 52 {
54 } 53 }
55 54
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #if !ENABLE(OILPAN) 98 #if !ENABLE(OILPAN)
100 void ref() { refEventTarget(); } 99 void ref() { refEventTarget(); }
101 void deref() { derefEventTarget(); } 100 void deref() { derefEventTarget(); }
102 #endif 101 #endif
103 102
104 virtual const AtomicString& interfaceName() const = 0; 103 virtual const AtomicString& interfaceName() const = 0;
105 virtual ExecutionContext* executionContext() const = 0; 104 virtual ExecutionContext* executionContext() const = 0;
106 105
107 virtual Node* toNode(); 106 virtual Node* toNode();
108 virtual LocalDOMWindow* toDOMWindow(); 107 virtual LocalDOMWindow* toDOMWindow();
109 virtual MessagePort* toMessagePort();
110 108
111 // FIXME: first 2 args to addEventListener and removeEventListener should 109 // FIXME: first 2 args to addEventListener and removeEventListener should
112 // be required (per spec), but throwing TypeError breaks legacy content. 110 // be required (per spec), but throwing TypeError breaks legacy content.
113 // http://crbug.com/353484 111 // http://crbug.com/353484
114 bool addEventListener() { return false; } 112 bool addEventListener() { return false; }
115 bool addEventListener(const AtomicString& eventType) { return false; } 113 bool addEventListener(const AtomicString& eventType) { return false; }
116 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false); 114 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false);
117 bool removeEventListener() { return false; } 115 bool removeEventListener() { return false; }
118 bool removeEventListener(const AtomicString& eventType) { return false; } 116 bool removeEventListener(const AtomicString& eventType) { return false; }
119 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false); 117 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro 259 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro
262 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass) 260 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass)
263 #endif 261 #endif
264 262
265 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted. 263 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted.
266 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly. 264 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly.
267 // Both of these macros are meant to be placed just before the "public:" section of the class declaration. 265 // Both of these macros are meant to be placed just before the "public:" section of the class declaration.
268 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>) 266 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>)
269 267
270 #endif // EventTarget_h 268 #endif // EventTarget_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/CustomEvent.h ('k') | sky/engine/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698