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

Side by Side Diff: Source/core/dom/Document.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/bindings/scripts/code_generator_v8.pm ('k') | Source/core/dom/Document.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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event. 906 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event.
907 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } 907 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; }
908 void decrementLoadEventDelayCount(); 908 void decrementLoadEventDelayCount();
909 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } 909 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; }
910 910
911 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota tionAngle, float force) const; 911 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota tionAngle, float force) const;
912 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const; 912 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const;
913 913
914 const DocumentTiming* timing() const { return &m_documentTiming; } 914 const DocumentTiming* timing() const { return &m_documentTiming; }
915 915
916 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); 916 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
917 void cancelAnimationFrame(int id); 917 void cancelAnimationFrame(int id);
918 void serviceScriptedAnimations(double monotonicAnimationStartTime); 918 void serviceScriptedAnimations(double monotonicAnimationStartTime);
919 919
920 virtual EventTarget* errorEventTarget(); 920 virtual EventTarget* errorEventTarget();
921 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>); 921 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>);
922 922
923 void initDNSPrefetch(); 923 void initDNSPrefetch();
924 924
925 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes tureTimestamp; } 925 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes tureTimestamp; }
926 void resetLastHandledUserGestureTimestamp(); 926 void resetLastHandledUserGestureTimestamp();
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 inline bool Node::isDocumentNode() const 1359 inline bool Node::isDocumentNode() const
1360 { 1360 {
1361 return this == documentInternal(); 1361 return this == documentInternal();
1362 } 1362 }
1363 1363
1364 Node* eventTargetNodeForDocument(Document*); 1364 Node* eventTargetNodeForDocument(Document*);
1365 1365
1366 } // namespace WebCore 1366 } // namespace WebCore
1367 1367
1368 #endif // Document_h 1368 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698