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/dom/ClientRect.h" | |
10 #include "platform/heap/Handle.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class Element; | |
15 class DOMRectReadOnly; | |
16 class ClientRect; | |
17 | |
18 class ResizeObserverEntry final : public GarbageCollected<ResizeObserverEntry>, public ScriptWrappable { | |
19 DEFINE_WRAPPERTYPEINFO(); | |
20 | |
21 public: | |
22 ResizeObserverEntry(Element* target); | |
esprehn
2016/07/19 00:17:58
explicit
| |
23 | |
24 Element* target() const { return m_target.get(); } | |
25 // FIXME(atotic): should return DOMRectReadOnly once https://crbug.com/38878 0 lands | |
26 ClientRect* contentRect() const { return m_contentRect; } | |
esprehn
2016/07/19 00:17:58
.get() ? You either want it in both this and targe
atotic1
2016/07/19 04:28:43
Not sure what you mean here by .get()?
esprehn
2016/07/19 05:19:46
Both fields are Member<X>, in target() you do m_ta
| |
27 | |
28 DECLARE_VIRTUAL_TRACE(); | |
29 | |
30 private: | |
31 Member<Element> m_target; | |
32 Member<ClientRect> m_contentRect; | |
33 }; | |
34 | |
35 } // namespace blink | |
36 | |
37 #endif // ResizeObserverEntry_h | |
OLD | NEW |