| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ResizeObserverEntry_h | 5 #ifndef ResizeObserverEntry_h |
| 6 #define ResizeObserverEntry_h | 6 #define ResizeObserverEntry_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class Element; | 13 class Element; |
| 14 class DOMRectReadOnly; | |
| 15 class ClientRect; | 14 class ClientRect; |
| 16 class LayoutSize; | 15 class LayoutSize; |
| 17 | 16 |
| 18 class ResizeObserverEntry final : public GarbageCollected<ResizeObserverEntry>,
public ScriptWrappable { | 17 class ResizeObserverEntry final : public GarbageCollected<ResizeObserverEntry>,
public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 20 | 19 |
| 21 public: | 20 public: |
| 22 explicit ResizeObserverEntry(Element* target); | 21 explicit ResizeObserverEntry(Element* target); |
| 23 | 22 |
| 24 Element* target() const { return m_target; } | 23 Element* target() const { return m_target; } |
| 25 // FIXME(atotic): should return DOMRectReadOnly once https://crbug.com/38878
0 lands | 24 // FIXME(atotic): should return DOMRectReadOnly once https://crbug.com/38878
0 lands |
| 26 ClientRect* contentRect() const { return m_contentRect; } | 25 ClientRect* contentRect() const { return m_contentRect; } |
| 26 LayoutSize contentSize() const; |
| 27 | 27 |
| 28 DECLARE_VIRTUAL_TRACE(); | 28 DECLARE_VIRTUAL_TRACE(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 Member<Element> m_target; | 31 Member<Element> m_target; |
| 32 Member<ClientRect> m_contentRect; | 32 Member<ClientRect> m_contentRect; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace blink | 35 } // namespace blink |
| 36 | 36 |
| 37 #endif // ResizeObserverEntry_h | 37 #endif // ResizeObserverEntry_h |
| OLD | NEW |