| Index: Source/core/wawwa/AnimatableElement.h
|
| diff --git a/Source/core/workers/DedicatedWorkerThread.cpp b/Source/core/wawwa/AnimatableElement.h
|
| similarity index 55%
|
| copy from Source/core/workers/DedicatedWorkerThread.cpp
|
| copy to Source/core/wawwa/AnimatableElement.h
|
| index 1e253243e7b6043703bebf7f5d7c75b85d0c9ddd..18a14a230666d841991fa7b6006efc32700e6510 100644
|
| --- a/Source/core/workers/DedicatedWorkerThread.cpp
|
| +++ b/Source/core/wawwa/AnimatableElement.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2009 Google Inc. All rights reserved.
|
| + * Copyright (C) 2014 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -28,42 +28,49 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "config.h"
|
| -
|
| -#include "core/workers/DedicatedWorkerThread.h"
|
| +#ifndef AnimatableElement_h
|
| +#define AnimatableElement_h
|
|
|
| +#include "bindings/core/v8/Dictionary.h"
|
| +#include "bindings/core/v8/SerializedScriptValue.h"
|
| +#include "core/animation/AnimationEffect.h"
|
| +#include "core/animation/AnimationTestHelper.h"
|
| +#include "core/animation/TimingInput.h"
|
| +#include "core/css/parser/BisonCSSParser.h"
|
| +#include "core/css/resolver/CSSToStyleMap.h"
|
| +#include "core/dom/CrossThreadTask.h"
|
| +#include "core/dom/Document.h"
|
| +#include "core/page/Page.h"
|
| +#include "core/wawwa/ListOfElements.h"
|
| +#include "core/wawwa/MockAnimationPlayer.h"
|
| +#include "core/wawwa/ProxyKeyframe.h"
|
| #include "core/workers/DedicatedWorkerGlobalScope.h"
|
| +#include "core/workers/DedicatedWorkerThread.h"
|
| +#include "core/workers/Worker.h"
|
| #include "core/workers/WorkerObjectProxy.h"
|
| -#include "core/workers/WorkerThreadStartupData.h"
|
| +#include "wtf/ArrayBuffer.h"
|
| +#include "wtf/RefPtr.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
|
|
| -PassRefPtr<DedicatedWorkerThread> DedicatedWorkerThread::create(WorkerLoaderProxy& workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
|
| -{
|
| - return adoptRef(new DedicatedWorkerThread(workerLoaderProxy, workerObjectProxy, timeOrigin, startupData));
|
| -}
|
| +class Dictionary;
|
| +class ExceptionState;
|
| +class DedicatedWorkerThread;
|
| +class WorkerObjectProxy;
|
|
|
| -DedicatedWorkerThread::DedicatedWorkerThread(WorkerLoaderProxy& workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
|
| - : WorkerThread(workerLoaderProxy, workerObjectProxy, startupData)
|
| - , m_workerObjectProxy(workerObjectProxy)
|
| - , m_timeOrigin(timeOrigin)
|
| -{
|
| -}
|
| +class AnimatableElement FINAL : public RefCountedWillBeRefCountedGarbageCollected<AnimatableElement> {
|
|
|
| -DedicatedWorkerThread::~DedicatedWorkerThread()
|
| -{
|
| -}
|
| +public:
|
| + AnimatableElement(String inputID);
|
| + static PassRefPtrWillBeRawPtr<AnimatableElement> create(String inputID);
|
| + AnimatableElement * clone();
|
| + PassRefPtrWillBeRawPtr<MockAnimationPlayer> animate(const Vector<Dictionary>& keyframeDictionaryVector, const Dictionary& timingInputDictionary, PassRefPtr<DedicatedWorkerGlobalScope>, ExceptionState&);
|
|
|
| -PassRefPtrWillBeRawPtr<WorkerGlobalScope> DedicatedWorkerThread::createWorkerGlobalScope(PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
|
| -{
|
| - return DedicatedWorkerGlobalScope::create(this, startupData, m_timeOrigin);
|
| -}
|
| -
|
| -void DedicatedWorkerThread::runEventLoop()
|
| -{
|
| - // Notify the parent object of our current active state before calling the superclass to run the event loop.
|
| - m_workerObjectProxy.reportPendingActivity(workerGlobalScope()->hasPendingActivity());
|
| - WorkerThread::runEventLoop();
|
| -}
|
| +private:
|
| + String m_id;
|
| +};
|
|
|
| } // namespace blink
|
| +
|
| +#endif
|
|
|