OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ResizeObserverEntry_h | |
6 #define ResizeObserverEntry_h | |
7 | |
8 #include "bindings/core/v8/ScriptWrappable.h" | |
9 #include "core/observer/ResizeObservation.h" | |
10 #include "platform/geometry/LayoutRect.h" | |
11 #include "platform/heap/Handle.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class Element; | |
16 class DOMRectReadOnly; | |
17 class ClientRect; | |
18 | |
19 class ResizeObserverEntry final : public GarbageCollected<ResizeObserverEntry>, public ScriptWrappable { | |
20 DEFINE_WRAPPERTYPEINFO(); | |
21 | |
22 public: | |
23 ResizeObserverEntry(Element* target); | |
24 | |
25 Element* target() const { return m_target.get(); } | |
26 // FIXME(atotic): should return DOMReadOnlyRect once GeometryInterfaces land | |
27 ClientRect* contentRect() const; | |
28 LayoutSize contentSize() const; | |
29 | |
30 DECLARE_VIRTUAL_TRACE(); | |
31 | |
32 private: | |
33 Member<Element> m_target; | |
34 LayoutRect m_contentRect; | |
szager1
2016/07/11 18:33:47
This should be stored as a ClientRect*, because we
atotic1
2016/07/11 23:18:58
Did not think of that. Thanks.
| |
35 }; | |
36 | |
37 } // namespace blink | |
38 | |
39 #endif // ResizeObserverEntry_h | |
OLD | NEW |