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

Side by Side Diff: sky/engine/core/animation/AnimationPlayer.h

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void pause(); 84 void pause();
85 void play(); 85 void play();
86 void reverse(); 86 void reverse();
87 void finish(ExceptionState&); 87 void finish(ExceptionState&);
88 bool finished() { return limited(currentTimeInternal()); } 88 bool finished() { return limited(currentTimeInternal()); }
89 bool playing() { return !(finished() || m_paused || m_isPausedForTesting); } 89 bool playing() { return !(finished() || m_paused || m_isPausedForTesting); }
90 // FIXME: Resolve whether finished() should just return the flag, and 90 // FIXME: Resolve whether finished() should just return the flag, and
91 // remove this method. 91 // remove this method.
92 bool finishedInternal() const { return m_finished; } 92 bool finishedInternal() const { return m_finished; }
93 93
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(finish);
95
96 virtual const AtomicString& interfaceName() const OVERRIDE; 94 virtual const AtomicString& interfaceName() const OVERRIDE;
97 virtual ExecutionContext* executionContext() const OVERRIDE; 95 virtual ExecutionContext* executionContext() const OVERRIDE;
98 virtual bool hasPendingActivity() const OVERRIDE; 96 virtual bool hasPendingActivity() const OVERRIDE;
99 virtual void stop() OVERRIDE; 97 virtual void stop() OVERRIDE;
100 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; 98 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE;
101 99
102 double playbackRate() const { return m_playbackRate; } 100 double playbackRate() const { return m_playbackRate; }
103 void setPlaybackRate(double); 101 void setPlaybackRate(double);
104 const AnimationTimeline* timeline() const { return m_timeline; } 102 const AnimationTimeline* timeline() const { return m_timeline; }
105 AnimationTimeline* timeline() { return m_timeline; } 103 AnimationTimeline* timeline() { return m_timeline; }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // animation is started. Updated once the start time is known and each time 212 // animation is started. Updated once the start time is known and each time
215 // modifications are pushed to the compositor. 213 // modifications are pushed to the compositor.
216 OwnPtr<CompositorState> m_compositorState; 214 OwnPtr<CompositorState> m_compositorState;
217 bool m_compositorPending; 215 bool m_compositorPending;
218 bool m_currentTimePending; 216 bool m_currentTimePending;
219 }; 217 };
220 218
221 } // namespace blink 219 } // namespace blink
222 220
223 #endif 221 #endif
OLDNEW
« no previous file with comments | « sky/engine/bindings/tests/idls/TestObject.idl ('k') | sky/engine/core/animation/AnimationPlayer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698