Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 10 matching lines...) Expand all Loading... | |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef SVGRectTearOff_h | 31 #ifndef ProxyMap_h |
| 32 #define SVGRectTearOff_h | 32 #define ProxyMap_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/Dictionary.h" |
| 35 #include "core/svg/SVGRect.h" | 35 #include "bindings/core/v8/V8StringResource.h" |
| 36 #include "core/svg/properties/SVGPropertyTearOff.h" | 36 #include "core/animation/AnimationTestHelper.h" |
| 37 #include "core/wawwa/ProxyKeyframe.h" | |
| 38 #include "core/wawwa/RemotePlayer.h" | |
| 39 #include "core/wawwa/RemotePlayerProxy.h" | |
| 40 #include "core/workers/Worker.h" | |
| 41 #include "core/workers/WorkerGlobalScope.h" | |
| 42 #include "wtf/HashMap.h" | |
| 43 #include "wtf/Vector.h" | |
| 44 #include "wtf/text/WTFString.h" | |
| 37 | 45 |
| 38 namespace blink { | 46 namespace blink { |
| 39 | 47 |
| 40 class SVGRectTearOff : public SVGPropertyTearOff<SVGRect>, public ScriptWrappabl e { | 48 class Dictionary; |
| 49 class ExecutionContext; | |
| 50 class WorkerGlobalScope; | |
| 51 class ExceptionState; | |
| 52 class RemotePlayer; | |
| 53 | |
| 54 class ProxyMap FINAL : public RefCountedWillBeRefCountedGarbageCollected<ProxyMa p> { | |
| 55 | |
| 41 public: | 56 public: |
| 42 static PassRefPtr<SVGRectTearOff> create(PassRefPtr<SVGRect> target, SVGElem ent* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedNam e& attributeName = QualifiedName::null()) | 57 static PassRefPtrWillBeRawPtr<ProxyMap> create() { return adoptRef(new Proxy Map()); } |
| 43 { | |
| 44 return adoptRef(new SVGRectTearOff(target, contextElement, propertyIsAni mVal, attributeName)); | |
| 45 } | |
| 46 | 58 |
| 47 void setX(float, ExceptionState&); | 59 Vector<WorkerGlobalScope*> workerGlobalScopeVector; |
| 48 void setY(float, ExceptionState&); | 60 void addToWorkerGlobalScopeVector(WorkerGlobalScope * instance); |
| 49 void setWidth(float, ExceptionState&); | 61 |
| 50 void setHeight(float, ExceptionState&); | 62 Vector<RefPtr<Worker> > workerVector; |
| 51 float x() { return target()->x(); } | 63 void addToWorkerVector(PassRefPtr<Worker> instance); |
| 52 float y() { return target()->y(); } | 64 |
| 53 float width() { return target()->width(); } | 65 RemotePlayerProxy* findDictRemotePlayerProxys(String val); |
| 54 float height() { return target()->height(); } | 66 void reportTime(String val, double time); |
| 67 void addtoMapRemotePlayer(String id, RemotePlayer* instance); | |
| 68 void checkForReportStartTime(); | |
| 69 void execute(ACTIONS, String id, const Vector<ProxyKeyframe> keyframes, cons t Timing timingInputDictionary); | |
| 55 | 70 |
| 56 private: | 71 private: |
| 57 SVGRectTearOff(PassRefPtr<SVGRect>, SVGElement* contextElement, PropertyIsAn imValType, const QualifiedName& attributeName = QualifiedName::null()); | 72 ProxyMap(); |
| 73 ProxyMap(ProxyMap const&); | |
|
dstockwell
2014/08/29 01:05:44
const ProxyMap& ?
nainar1
2014/08/29 06:01:40
Acknowledged.
| |
| 74 void operator=(ProxyMap const&); | |
| 75 HashMap <String, RemotePlayerProxy*> m_dictRemotePlayerProxys; | |
| 76 HashMap <String, RemotePlayer*> m_dictRemotePlayers; | |
| 77 | |
| 58 }; | 78 }; |
| 59 | 79 |
| 60 } // namespace blink | 80 } // namespace blink |
| 61 | 81 |
| 62 #endif // SVGRectTearOff_h_ | 82 #endif |
| OLD | NEW |