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

Unified Diff: Source/core/wawwa/ProxyMap.h

Issue 491053004: Expose Web Animations API to Web Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Exposing the Web Animations API to Web Workers Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/wawwa/ProxyMap.h
diff --git a/Source/core/svg/SVGRectTearOff.h b/Source/core/wawwa/ProxyMap.h
similarity index 54%
copy from Source/core/svg/SVGRectTearOff.h
copy to Source/core/wawwa/ProxyMap.h
index 0e2b502b29f6b61c542895d86e412f7be2fe92d1..c1859eff8d2944acab2de35d5da38050613d77c3 100644
--- a/Source/core/svg/SVGRectTearOff.h
+++ b/Source/core/wawwa/ProxyMap.h
@@ -28,35 +28,55 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SVGRectTearOff_h
-#define SVGRectTearOff_h
+#ifndef ProxyMap_h
+#define ProxyMap_h
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/svg/SVGRect.h"
-#include "core/svg/properties/SVGPropertyTearOff.h"
+#include "bindings/core/v8/Dictionary.h"
+#include "bindings/core/v8/V8StringResource.h"
+#include "core/animation/AnimationTestHelper.h"
+#include "core/wawwa/ProxyKeyframe.h"
+#include "core/wawwa/RemotePlayer.h"
+#include "core/wawwa/RemotePlayerProxy.h"
+#include "core/workers/Worker.h"
+#include "core/workers/WorkerGlobalScope.h"
+#include "wtf/HashMap.h"
+#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
namespace blink {
-class SVGRectTearOff : public SVGPropertyTearOff<SVGRect>, public ScriptWrappable {
+class Dictionary;
+class ExecutionContext;
+class WorkerGlobalScope;
+class ExceptionState;
+class RemotePlayer;
+
+class ProxyMap FINAL : public RefCountedWillBeRefCountedGarbageCollected<ProxyMap> {
+
public:
- static PassRefPtr<SVGRectTearOff> create(PassRefPtr<SVGRect> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
- {
- return adoptRef(new SVGRectTearOff(target, contextElement, propertyIsAnimVal, attributeName));
- }
-
- void setX(float, ExceptionState&);
- void setY(float, ExceptionState&);
- void setWidth(float, ExceptionState&);
- void setHeight(float, ExceptionState&);
- float x() { return target()->x(); }
- float y() { return target()->y(); }
- float width() { return target()->width(); }
- float height() { return target()->height(); }
+ static PassRefPtrWillBeRawPtr<ProxyMap> create() { return adoptRef(new ProxyMap()); }
+
+ Vector<WorkerGlobalScope*> workerGlobalScopeVector;
+ void addToWorkerGlobalScopeVector(WorkerGlobalScope * instance);
+
+ Vector<RefPtr<Worker> > workerVector;
+ void addToWorkerVector(PassRefPtr<Worker> instance);
+
+ RemotePlayerProxy* findDictRemotePlayerProxys(String val);
+ void reportTime(String val, double time);
+ void addtoMapRemotePlayer(String id, RemotePlayer* instance);
+ void checkForReportStartTime();
+ void execute(ACTIONS, String id, const Vector<ProxyKeyframe> keyframes, const Timing timingInputDictionary);
private:
- SVGRectTearOff(PassRefPtr<SVGRect>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::null());
+ ProxyMap();
+ ProxyMap(ProxyMap const&);
dstockwell 2014/08/29 01:05:44 const ProxyMap& ?
nainar1 2014/08/29 06:01:40 Acknowledged.
+ void operator=(ProxyMap const&);
+ HashMap <String, RemotePlayerProxy*> m_dictRemotePlayerProxys;
+ HashMap <String, RemotePlayer*> m_dictRemotePlayers;
+
};
} // namespace blink
-#endif // SVGRectTearOff_h_
+#endif

Powered by Google App Engine
This is Rietveld 408576698