OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositorProxy_h |
| 6 #define CompositorProxy_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/Element.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/PassOwnPtr.h" |
| 12 #include "wtf/PassRefPtr.h" |
| 13 #include "wtf/RefCounted.h" |
| 14 #include "wtf/text/WTFString.h" |
| 15 |
| 16 namespace blink { |
| 17 |
| 18 class ExceptionState; |
| 19 class ExecutionContext; |
| 20 |
| 21 class CompositorProxy final : public GarbageCollectedFinalized<CompositorProxy>,
public ScriptWrappable { |
| 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 public: |
| 24 static CompositorProxy* create(ExecutionContext*, Element*, const Vector<Str
ing>& attributeArray, ExceptionState&); |
| 25 static CompositorProxy* create(uint64_t element, uint32_t attributeFlags); |
| 26 virtual ~CompositorProxy(); |
| 27 |
| 28 enum class Attributes { |
| 29 NONE = 0, |
| 30 OPACITY = 1 << 0, |
| 31 SCROLL_LEFT = 1 << 2, |
| 32 SCROLL_TOP = 1 << 3, |
| 33 TOUCH = 1 << 4, |
| 34 TRANSFORM = 1 << 5, |
| 35 }; |
| 36 |
| 37 DEFINE_INLINE_TRACE() { } |
| 38 |
| 39 uint64_t elementId() const { return m_elementId; } |
| 40 uint32_t bitfieldsSupported() const { return m_bitfieldsSupported; } |
| 41 bool supports(const String& attribute) const; |
| 42 |
| 43 protected: |
| 44 CompositorProxy(Element&, const Vector<String>& attributeArray); |
| 45 CompositorProxy(uint64_t element, uint32_t attributeFlags); |
| 46 |
| 47 private: |
| 48 const uint64_t m_elementId; |
| 49 const uint32_t m_bitfieldsSupported; |
| 50 }; |
| 51 |
| 52 } // namespace blink |
| 53 |
| 54 #endif // CompositorProxy_h |
OLD | NEW |