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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 Console& console() const; 225 Console& console() const;
226 PageConsole* pageConsole() const; 226 PageConsole* pageConsole() const;
227 227
228 void printErrorMessage(const String&); 228 void printErrorMessage(const String&);
229 String crossDomainAccessErrorMessage(DOMWindow* callingWindow); 229 String crossDomainAccessErrorMessage(DOMWindow* callingWindow);
230 String sanitizedCrossDomainAccessErrorMessage(DOMWindow* callingWindow); 230 String sanitizedCrossDomainAccessErrorMessage(DOMWindow* callingWindow);
231 231
232 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag ePortArray*, const String& targetOrigin, DOMWindow* source, ExceptionState&); 232 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag ePortArray*, const String& targetOrigin, DOMWindow* source, ExceptionState&);
233 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>); 233 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>);
234 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO rigin, PassRefPtr<Event>, PassRefPtr<ScriptCallStack>); 234 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO rigin, PassRefPtrWillBeRawPtr<Event>, PassRefPtr<ScriptCallStack>);
235 235
236 void scrollBy(int x, int y, const Dictionary& scrollOptions, ExceptionSt ate&) const; 236 void scrollBy(int x, int y, const Dictionary& scrollOptions, ExceptionSt ate&) const;
237 void scrollTo(int x, int y, const Dictionary& scrollOptions, ExceptionSt ate&) const; 237 void scrollTo(int x, int y, const Dictionary& scrollOptions, ExceptionSt ate&) const;
238 void scroll(int x, int y, const Dictionary& scrollOptions, ExceptionStat e& exceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); } 238 void scroll(int x, int y, const Dictionary& scrollOptions, ExceptionStat e& exceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); }
239 239
240 void moveBy(float x, float y) const; 240 void moveBy(float x, float y) const;
241 void moveTo(float x, float y) const; 241 void moveTo(float x, float y) const;
242 242
243 void resizeBy(float x, float y) const; 243 void resizeBy(float x, float y) const;
244 void resizeTo(float width, float height) const; 244 void resizeTo(float width, float height) const;
245 245
246 // WebKit animation extensions 246 // WebKit animation extensions
247 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); 247 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
248 int webkitRequestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback >); 248 int webkitRequestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback >);
249 void cancelAnimationFrame(int id); 249 void cancelAnimationFrame(int id);
250 250
251 DOMWindowCSS& css() const; 251 DOMWindowCSS& css() const;
252 252
253 // Events 253 // Events
254 // EventTarget API 254 // EventTarget API
255 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr< EventListener>, bool useCapture = false) OVERRIDE; 255 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr< EventListener>, bool useCapture = false) OVERRIDE;
256 virtual bool removeEventListener(const AtomicString& eventType, EventLis tener*, bool useCapture = false) OVERRIDE; 256 virtual bool removeEventListener(const AtomicString& eventType, EventLis tener*, bool useCapture = false) OVERRIDE;
257 virtual void removeAllEventListeners() OVERRIDE; 257 virtual void removeAllEventListeners() OVERRIDE;
258 258
259 using EventTarget::dispatchEvent; 259 using EventTarget::dispatchEvent;
260 bool dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventTarget> p rpTarget); 260 bool dispatchEvent(PassRefPtrWillBeRawPtr<Event> prpEvent, PassRefPtr<Ev entTarget> prpTarget);
261 261
262 void dispatchLoadEvent(); 262 void dispatchLoadEvent();
263 263
264 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationend); 264 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationend);
265 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationiteration); 265 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationiteration);
266 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationstart); 266 DEFINE_ATTRIBUTE_EVENT_LISTENER(animationstart);
267 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); 267 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
268 DEFINE_ATTRIBUTE_EVENT_LISTENER(transitionend); 268 DEFINE_ATTRIBUTE_EVENT_LISTENER(transitionend);
269 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); 269 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel);
270 270
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool isCurrentlyDisplayedInFrame() const; 307 bool isCurrentlyDisplayedInFrame() const;
308 308
309 void willDetachDocumentFromFrame(); 309 void willDetachDocumentFromFrame();
310 DOMWindow* anonymousIndexedGetter(uint32_t); 310 DOMWindow* anonymousIndexedGetter(uint32_t);
311 311
312 bool isInsecureScriptAccess(DOMWindow& callingWindow, const String& urlS tring); 312 bool isInsecureScriptAccess(DOMWindow& callingWindow, const String& urlS tring);
313 313
314 PassOwnPtr<LifecycleNotifier<DOMWindow> > createLifecycleNotifier(); 314 PassOwnPtr<LifecycleNotifier<DOMWindow> > createLifecycleNotifier();
315 315
316 EventQueue* eventQueue() const; 316 EventQueue* eventQueue() const;
317 void enqueueWindowEvent(PassRefPtr<Event>); 317 void enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event>);
318 void enqueueDocumentEvent(PassRefPtr<Event>); 318 void enqueueDocumentEvent(PassRefPtrWillBeRawPtr<Event>);
319 void enqueuePageshowEvent(PageshowEventPersistence); 319 void enqueuePageshowEvent(PageshowEventPersistence);
320 void enqueueHashchangeEvent(const String& oldURL, const String& newURL); 320 void enqueueHashchangeEvent(const String& oldURL, const String& newURL);
321 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>); 321 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>);
322 void dispatchWindowLoadEvent(); 322 void dispatchWindowLoadEvent();
323 void documentWasClosed(); 323 void documentWasClosed();
324 void statePopped(PassRefPtr<SerializedScriptValue>); 324 void statePopped(PassRefPtr<SerializedScriptValue>);
325 325
326 // FIXME: This shouldn't be public once DOMWindow becomes ExecutionConte xt. 326 // FIXME: This shouldn't be public once DOMWindow becomes ExecutionConte xt.
327 void clearEventQueue(); 327 void clearEventQueue();
328 328
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 inline String DOMWindow::defaultStatus() const 385 inline String DOMWindow::defaultStatus() const
386 { 386 {
387 return m_defaultStatus; 387 return m_defaultStatus;
388 } 388 }
389 389
390 } // namespace WebCore 390 } // namespace WebCore
391 391
392 #endif // DOMWindow_h 392 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698