Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/WebKit/Source/core/observer/ResizeObserverEntry.h

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix global-interface-listing test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 { return m_contentRect; }
28 LayoutSize contentSize() const;
29
30 DECLARE_VIRTUAL_TRACE();
31
32 private:
33 Member<Element> m_target;
34 Member<ClientRect> m_contentRect;
35 };
36
37 } // namespace blink
38
39 #endif // ResizeObserverEntry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698