Chromium Code Reviews| 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..102df059fd4f9ea3fa2c54cd823633226f2ed752 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/ProxyKeyframe.h" |
| +#include "core/wawwa/ProxyMap.h" |
| +#include "core/wawwa/RemotePlayer.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(); |
|
dstockwell
2014/08/29 01:05:43
Remove the space in 'AnimatableElement *'
nainar1
2014/08/29 06:01:39
Acknowledged.
|
| + PassRefPtrWillBeRawPtr<RemotePlayer> animate(const Vector<Dictionary>& keyframeDictionaryVector, const Dictionary& timingInputDictionary, PassRefPtr<DedicatedWorkerGlobalScope>, ExceptionState&); |
|
dstockwell
2014/08/29 01:05:43
keyframeDictionaryVector -> keyframes
timingInputD
nainar1
2014/08/29 06:01:39
Acknowledged.
|
| -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; |
|
dstockwell
2014/08/29 01:05:43
Is this an ID or a string used as a selector?
nainar1
2014/08/29 06:01:39
String used as a selector - only supports IDs for
|
| +}; |
| } // namespace blink |
| + |
| +#endif |