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

Side by Side Diff: Source/core/dom/Document.h

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing remaining usages of -1 in the code. Created 6 years, 5 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 | « Source/core/animation/DocumentAnimations.cpp ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "core/dom/ViewportDescription.h" 46 #include "core/dom/ViewportDescription.h"
47 #include "core/dom/custom/CustomElement.h" 47 #include "core/dom/custom/CustomElement.h"
48 #include "core/html/CollectionType.h" 48 #include "core/html/CollectionType.h"
49 #include "core/page/FocusType.h" 49 #include "core/page/FocusType.h"
50 #include "core/page/PageVisibilityState.h" 50 #include "core/page/PageVisibilityState.h"
51 #include "platform/Length.h" 51 #include "platform/Length.h"
52 #include "platform/Timer.h" 52 #include "platform/Timer.h"
53 #include "platform/heap/Handle.h" 53 #include "platform/heap/Handle.h"
54 #include "platform/weborigin/KURL.h" 54 #include "platform/weborigin/KURL.h"
55 #include "platform/weborigin/ReferrerPolicy.h" 55 #include "platform/weborigin/ReferrerPolicy.h"
56 #include "public/platform/WebFrameTime.h"
56 #include "wtf/HashSet.h" 57 #include "wtf/HashSet.h"
57 #include "wtf/OwnPtr.h" 58 #include "wtf/OwnPtr.h"
58 #include "wtf/PassOwnPtr.h" 59 #include "wtf/PassOwnPtr.h"
59 #include "wtf/PassRefPtr.h" 60 #include "wtf/PassRefPtr.h"
60 #include "wtf/WeakPtr.h" 61 #include "wtf/WeakPtr.h"
61 62
62 namespace WebCore { 63 namespace WebCore {
63 64
64 class AnimationTimeline; 65 class AnimationTimeline;
65 class AXObjectCache; 66 class AXObjectCache;
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 bool isDelayingLoadEvent(); 925 bool isDelayingLoadEvent();
925 void loadPluginsSoon(); 926 void loadPluginsSoon();
926 927
927 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const; 928 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const;
928 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const; 929 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const;
929 930
930 const DocumentTiming& timing() const { return m_documentTiming; } 931 const DocumentTiming& timing() const { return m_documentTiming; }
931 932
932 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); 933 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
933 void cancelAnimationFrame(int id); 934 void cancelAnimationFrame(int id);
934 void serviceScriptedAnimations(double monotonicAnimationStartTime); 935 void serviceScriptedAnimations(blink::WebFrameTime);
935 936
936 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; 937 virtual EventTarget* errorEventTarget() OVERRIDE FINAL;
937 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) OVERRIDE FINAL; 938 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) OVERRIDE FINAL;
938 939
939 void initDNSPrefetch(); 940 void initDNSPrefetch();
940 941
941 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_ touchEventTargets->size() : false; } 942 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_ touchEventTargets->size() : false; }
942 943
943 // Called when a single touch event handler has been added or removed for a node. 944 // Called when a single touch event handler has been added or removed for a node.
944 // The Node should always be in this Document, except for child Documents wh ich report 945 // The Node should always be in this Document, except for child Documents wh ich report
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 inline bool Node::isDocumentNode() const 1428 inline bool Node::isDocumentNode() const
1428 { 1429 {
1429 return this == document(); 1430 return this == document();
1430 } 1431 }
1431 1432
1432 Node* eventTargetNodeForDocument(Document*); 1433 Node* eventTargetNodeForDocument(Document*);
1433 1434
1434 } // namespace WebCore 1435 } // namespace WebCore
1435 1436
1436 #endif // Document_h 1437 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/animation/DocumentAnimations.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698