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

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

Issue 92913002: Manage RequestAnimationFrameCallbacks with OwnPtrs instead of RefPtrs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/ScriptedAnimationController.cpp ('k') | Source/core/frame/DOMWindow.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) 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void scrollTo(int x, int y) const; 231 void scrollTo(int x, int y) const;
232 void scroll(int x, int y) const { scrollTo(x, y); } 232 void scroll(int x, int y) const { scrollTo(x, y); }
233 233
234 void moveBy(float x, float y) const; 234 void moveBy(float x, float y) const;
235 void moveTo(float x, float y) const; 235 void moveTo(float x, float y) const;
236 236
237 void resizeBy(float x, float y) const; 237 void resizeBy(float x, float y) const;
238 void resizeTo(float width, float height) const; 238 void resizeTo(float width, float height) const;
239 239
240 // WebKit animation extensions 240 // WebKit animation extensions
241 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); 241 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
242 int webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback >); 242 int webkitRequestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback >);
243 void cancelAnimationFrame(int id); 243 void cancelAnimationFrame(int id);
244 244
245 DOMWindowCSS* css(); 245 DOMWindowCSS* css();
246 246
247 // Events 247 // Events
248 // EventTarget API 248 // EventTarget API
249 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr< EventListener>, bool useCapture) OVERRIDE; 249 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr< EventListener>, bool useCapture) OVERRIDE;
250 virtual bool removeEventListener(const AtomicString& eventType, EventLis tener*, bool useCapture) OVERRIDE; 250 virtual bool removeEventListener(const AtomicString& eventType, EventLis tener*, bool useCapture) OVERRIDE;
251 virtual void removeAllEventListeners() OVERRIDE; 251 virtual void removeAllEventListeners() OVERRIDE;
252 252
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 381 }
382 382
383 inline String DOMWindow::defaultStatus() const 383 inline String DOMWindow::defaultStatus() const
384 { 384 {
385 return m_defaultStatus; 385 return m_defaultStatus;
386 } 386 }
387 387
388 } // namespace WebCore 388 } // namespace WebCore
389 389
390 #endif // DOMWindow_h 390 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698