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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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
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/animation/Animation.h" 9 #include "core/animation/Animation.h"
10 #include "core/css/CSSKeyframesRule.h" 10 #include "core/css/CSSKeyframesRule.h"
(...skipping 27 matching lines...) Expand all
38 // Protocol method implementations 38 // Protocol method implementations
39 void enable(ErrorString*) override; 39 void enable(ErrorString*) override;
40 void disable(ErrorString*) override; 40 void disable(ErrorString*) override;
41 void getPlaybackRate(ErrorString*, double* playbackRate) override; 41 void getPlaybackRate(ErrorString*, double* playbackRate) override;
42 void setPlaybackRate(ErrorString*, double playbackRate) override; 42 void setPlaybackRate(ErrorString*, double playbackRate) override;
43 void getCurrentTime(ErrorString*, const String& id, double* currentTime) ove rride; 43 void getCurrentTime(ErrorString*, const String& id, double* currentTime) ove rride;
44 void setPaused(ErrorString*, std::unique_ptr<protocol::Array<String>> animat ions, bool paused) override; 44 void setPaused(ErrorString*, std::unique_ptr<protocol::Array<String>> animat ions, bool paused) override;
45 void setTiming(ErrorString*, const String& animationId, double duration, dou ble delay) override; 45 void setTiming(ErrorString*, const String& animationId, double duration, dou ble delay) override;
46 void seekAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>> a nimations, double currentTime) override; 46 void seekAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>> a nimations, double currentTime) override;
47 void releaseAnimations(ErrorString*, std::unique_ptr<protocol::Array<String> > animations) override; 47 void releaseAnimations(ErrorString*, std::unique_ptr<protocol::Array<String> > animations) override;
48 void resolveAnimation(ErrorString*, const String& animationId, std::unique_p tr<protocol::Runtime::API::RemoteObject>*) override; 48 void resolveAnimation(ErrorString*, const String& animationId, std::unique_p tr<v8_inspector::protocol::Runtime::API::RemoteObject>*) override;
49 49
50 // API for InspectorInstrumentation 50 // API for InspectorInstrumentation
51 void didCreateAnimation(unsigned); 51 void didCreateAnimation(unsigned);
52 void animationPlayStateChanged(blink::Animation*, blink::Animation::Animatio nPlayState, blink::Animation::AnimationPlayState); 52 void animationPlayStateChanged(blink::Animation*, blink::Animation::Animatio nPlayState, blink::Animation::AnimationPlayState);
53 void didClearDocumentOfWindowObject(LocalFrame*); 53 void didClearDocumentOfWindowObject(LocalFrame*);
54 54
55 // Methods for other agents to use. 55 // Methods for other agents to use.
56 blink::Animation* assertAnimation(ErrorString*, const String& id); 56 blink::Animation* assertAnimation(ErrorString*, const String& id);
57 57
58 DECLARE_VIRTUAL_TRACE(); 58 DECLARE_VIRTUAL_TRACE();
(...skipping 15 matching lines...) Expand all
74 HeapHashMap<String, Member<blink::Animation>> m_idToAnimation; 74 HeapHashMap<String, Member<blink::Animation>> m_idToAnimation;
75 HeapHashMap<String, Member<blink::Animation>> m_idToAnimationClone; 75 HeapHashMap<String, Member<blink::Animation>> m_idToAnimationClone;
76 HashMap<String, String> m_idToAnimationType; 76 HashMap<String, String> m_idToAnimationType;
77 bool m_isCloning; 77 bool m_isCloning;
78 HashSet<String> m_clearedAnimations; 78 HashSet<String> m_clearedAnimations;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // InspectorAnimationAgent_h 83 #endif // InspectorAnimationAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698