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

Side by Side Diff: Source/core/inspector/InspectorAnimationAgent.h

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorAnimationAgent_h 5 #ifndef InspectorAnimationAgent_h
6 #define InspectorAnimationAgent_h 6 #define InspectorAnimationAgent_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/InspectorFrontend.h" 9 #include "core/InspectorFrontend.h"
10 #include "core/css/CSSKeyframesRule.h" 10 #include "core/css/CSSKeyframesRule.h"
(...skipping 18 matching lines...) Expand all
29 { 29 {
30 return adoptPtrWillBeNoop(new InspectorAnimationAgent(pageAgent, domAgen t)); 30 return adoptPtrWillBeNoop(new InspectorAnimationAgent(pageAgent, domAgen t));
31 } 31 }
32 32
33 // Base agent methods. 33 // Base agent methods.
34 void restore() override; 34 void restore() override;
35 void disable(ErrorString*) override; 35 void disable(ErrorString*) override;
36 void didCommitLoadForLocalFrame(LocalFrame*) override; 36 void didCommitLoadForLocalFrame(LocalFrame*) override;
37 37
38 // Protocol method implementations 38 // Protocol method implementations
39 virtual void getPlaybackRate(ErrorString*, double* playbackRate) override; 39 void getPlaybackRate(ErrorString*, double* playbackRate) override;
40 virtual void setPlaybackRate(ErrorString*, double playbackRate) override; 40 void setPlaybackRate(ErrorString*, double playbackRate) override;
41 virtual void setCurrentTime(ErrorString*, double currentTime) override; 41 void setCurrentTime(ErrorString*, double currentTime) override;
42 virtual void setTiming(ErrorString*, const String& animationId, double durat ion, double delay) override; 42 void setTiming(ErrorString*, const String& animationId, double duration, dou ble delay) override;
43 43
44 // API for InspectorInstrumentation 44 // API for InspectorInstrumentation
45 void didCreateAnimation(Animation*); 45 void didCreateAnimation(Animation*);
46 void didCancelAnimation(Animation*); 46 void didCancelAnimation(Animation*);
47 void didClearDocumentOfWindowObject(LocalFrame*); 47 void didClearDocumentOfWindowObject(LocalFrame*);
48 48
49 // API for InspectorFrontend 49 // API for InspectorFrontend
50 virtual void enable(ErrorString*) override; 50 void enable(ErrorString*) override;
51 51
52 // Methods for other agents to use. 52 // Methods for other agents to use.
53 Animation* assertAnimation(ErrorString*, const String& id); 53 Animation* assertAnimation(ErrorString*, const String& id);
54 54
55 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
56 56
57 private: 57 private:
58 InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*); 58 InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*);
59 59
60 typedef TypeBuilder::Animation::Animation::Type::Enum AnimationType; 60 typedef TypeBuilder::Animation::Animation::Type::Enum AnimationType;
61 61
62 PassRefPtr<TypeBuilder::Animation::Animation> buildObjectForAnimation(Animat ion&); 62 PassRefPtr<TypeBuilder::Animation::Animation> buildObjectForAnimation(Animat ion&);
63 PassRefPtr<TypeBuilder::Animation::Animation> buildObjectForAnimation(Animat ion&, AnimationType, PassRefPtr<TypeBuilder::Animation::KeyframesRule> keyframeR ule = nullptr); 63 PassRefPtr<TypeBuilder::Animation::Animation> buildObjectForAnimation(Animat ion&, AnimationType, PassRefPtr<TypeBuilder::Animation::KeyframesRule> keyframeR ule = nullptr);
64 double normalizedStartTime(Animation&); 64 double normalizedStartTime(Animation&);
65 AnimationTimeline& referenceTimeline(); 65 AnimationTimeline& referenceTimeline();
66 66
67 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 67 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
68 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 68 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
69 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation; 69 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation;
70 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; 70 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
71 double m_latestStartTime; 71 double m_latestStartTime;
72 }; 72 };
73 73
74 } 74 }
75 75
76 #endif // InspectorAnimationAgent_h 76 #endif // InspectorAnimationAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/DevToolsHost.cpp ('k') | Source/core/inspector/InspectorApplicationCacheAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698