OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CompositorProxy_h | 5 #ifndef CompositorProxy_h |
6 #define CompositorProxy_h | 6 #define CompositorProxy_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/dom/DOMMatrix.h" | 9 #include "core/dom/DOMMatrix.h" |
10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 DEFINE_INLINE_TRACE() | 39 DEFINE_INLINE_TRACE() |
40 { | 40 { |
41 visitor->trace(m_transform); | 41 visitor->trace(m_transform); |
42 } | 42 } |
43 | 43 |
44 uint64_t elementId() const { return m_elementId; } | 44 uint64_t elementId() const { return m_elementId; } |
45 uint32_t bitfieldsSupported() const { return m_bitfieldsSupported; } | 45 uint32_t bitfieldsSupported() const { return m_bitfieldsSupported; } |
46 bool supports(const String& attribute) const; | 46 bool supports(const String& attribute) const; |
47 | 47 |
| 48 bool connected() const { return m_connected; } |
| 49 void disconnect(); |
| 50 |
48 double opacity(ExceptionState&) const; | 51 double opacity(ExceptionState&) const; |
49 double scrollLeft(ExceptionState&) const; | 52 double scrollLeft(ExceptionState&) const; |
50 double scrollTop(ExceptionState&) const; | 53 double scrollTop(ExceptionState&) const; |
51 DOMMatrix* transform(ExceptionState&) const; | 54 DOMMatrix* transform(ExceptionState&) const; |
52 | 55 |
53 void setOpacity(double, ExceptionState&); | 56 void setOpacity(double, ExceptionState&); |
54 void setScrollLeft(double, ExceptionState&); | 57 void setScrollLeft(double, ExceptionState&); |
55 void setScrollTop(double, ExceptionState&); | 58 void setScrollTop(double, ExceptionState&); |
56 void setTransform(DOMMatrix*, ExceptionState&); | 59 void setTransform(DOMMatrix*, ExceptionState&); |
57 | 60 |
58 protected: | 61 protected: |
59 CompositorProxy(Element&, const Vector<String>& attributeArray); | 62 CompositorProxy(Element&, const Vector<String>& attributeArray); |
60 CompositorProxy(uint64_t element, uint32_t attributeFlags); | 63 CompositorProxy(uint64_t element, uint32_t attributeFlags); |
61 | 64 |
62 private: | 65 private: |
63 bool raiseExceptionIfNotMutable(Attributes, ExceptionState&) const; | 66 bool raiseExceptionIfNotMutable(Attributes, ExceptionState&) const; |
64 | 67 |
65 const uint64_t m_elementId = 0; | 68 const uint64_t m_elementId = 0; |
66 const uint32_t m_bitfieldsSupported = 0; | 69 const uint32_t m_bitfieldsSupported = 0; |
67 uint32_t m_mutatedAttributes = 0; | 70 uint32_t m_mutatedAttributes = 0; |
68 | 71 |
69 double m_opacity = 0; | 72 double m_opacity = 0; |
70 double m_scrollLeft = 0; | 73 double m_scrollLeft = 0; |
71 double m_scrollTop = 0; | 74 double m_scrollTop = 0; |
72 Member<DOMMatrix> m_transform; | 75 Member<DOMMatrix> m_transform; |
| 76 |
| 77 bool m_connected = true; |
73 }; | 78 }; |
74 | 79 |
75 } // namespace blink | 80 } // namespace blink |
76 | 81 |
77 #endif // CompositorProxy_h | 82 #endif // CompositorProxy_h |
OLD | NEW |