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: sky/engine/core/frame/LocalDOMWindow.h

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/frame/DOMWindowEventHandlers.h ('k') | sky/engine/core/frame/Window.idl » ('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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // EventTarget API 187 // EventTarget API
188 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE; 188 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE;
189 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) OVERRIDE; 189 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) OVERRIDE;
190 virtual void removeAllEventListeners() OVERRIDE; 190 virtual void removeAllEventListeners() OVERRIDE;
191 191
192 using EventTarget::dispatchEvent; 192 using EventTarget::dispatchEvent;
193 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassRefPtrWillBeR awPtr<EventTarget> prpTarget); 193 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassRefPtrWillBeR awPtr<EventTarget> prpTarget);
194 194
195 void dispatchLoadEvent(); 195 void dispatchLoadEvent();
196 196
197 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationend);
198 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationiteration);
199 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationstart);
200 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
201 DEFINE_ATTRIBUTE_EVENT_LISTENER(transitionend);
202 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel);
203
204 // This is the interface orientation in degrees. Some examples are: 197 // This is the interface orientation in degrees. Some examples are:
205 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 198 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
206 // 90 is when rotated counter clockwise. 199 // 90 is when rotated counter clockwise.
207 int orientation() const; 200 int orientation() const;
208 201
209 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange);
210 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
214
215 void willDetachDocumentFromFrame(); 202 void willDetachDocumentFromFrame();
216 203
217 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String); 204 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String);
218 205
219 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > createLifecycleNotifier(); 206 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > createLifecycleNotifier();
220 207
221 EventQueue* eventQueue() const; 208 EventQueue* eventQueue() const;
222 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>); 209 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>);
223 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>); 210 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>);
224 void enqueuePageshowEvent(PageshowEventPersistence); 211 void enqueuePageshowEvent(PageshowEventPersistence);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 265
279 mutable RefPtrWillBeMember<DOMWindowCSS> m_css; 266 mutable RefPtrWillBeMember<DOMWindowCSS> m_css;
280 267
281 RefPtrWillBeMember<DOMWindowEventQueue> m_eventQueue; 268 RefPtrWillBeMember<DOMWindowEventQueue> m_eventQueue;
282 RefPtr<SerializedScriptValue> m_pendingStateObject; 269 RefPtr<SerializedScriptValue> m_pendingStateObject;
283 }; 270 };
284 271
285 } // namespace blink 272 } // namespace blink
286 273
287 #endif // LocalDOMWindow_h 274 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « sky/engine/core/frame/DOMWindowEventHandlers.h ('k') | sky/engine/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698