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

Side by Side Diff: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Added dispose() methods for expicit cleanup Created 5 years 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 2015 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 IntersectionObserverEntry_h
6 #define IntersectionObserverEntry_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/ClientRect.h"
10 #include "platform/geometry/IntRect.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class Element;
16
17 class IntersectionObserverEntry : public GarbageCollectedFinalized<IntersectionO bserverEntry>, public ScriptWrappable {
18 DEFINE_WRAPPERTYPEINFO();
19 public:
20 IntersectionObserverEntry(double, const IntRect&, const IntRect&, const IntR ect&, Element*);
esprehn 2015/12/17 01:40:29 need argument names for all double and IntRect one
szager1 2015/12/17 20:27:26 Done.
21 ~IntersectionObserverEntry();
22
23 double time() { return m_time; }
esprehn 2015/12/17 01:40:29 const for all these methods, certainly for the tim
szager1 2015/12/17 20:27:26 Done.
24 ClientRect* boundingClientRect() { return m_boundingClientRect; }
25 ClientRect* rootBounds() { return m_rootBounds; }
26 ClientRect* intersectionRect() { return m_intersectionRect; }
27 Element* target() { return m_target.get(); }
28
29 DECLARE_VIRTUAL_TRACE();
30
31 private:
32 double m_time;
33 Member<ClientRect> m_boundingClientRect;
34 Member<ClientRect> m_rootBounds;
35 Member<ClientRect> m_intersectionRect;
36 RefPtrWillBeMember<Element> m_target;
37 };
38
39 } // namespace blink
40
41 #endif // IntersectionObserverEntry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698