Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h |
| diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0fe95a752d7ec39db8b18aa1fa8d7c551676d4ab |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IntersectionObserverEntry_h |
| +#define IntersectionObserverEntry_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "core/dom/ClientRect.h" |
| +#include "platform/geometry/IntRect.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class Element; |
| + |
| +class IntersectionObserverEntry : public GarbageCollectedFinalized<IntersectionObserverEntry>, public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| +public: |
| + IntersectionObserverEntry(double, const IntRect&, const IntRect&, const IntRect&, 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.
|
| + ~IntersectionObserverEntry(); |
| + |
| + 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.
|
| + ClientRect* boundingClientRect() { return m_boundingClientRect; } |
| + ClientRect* rootBounds() { return m_rootBounds; } |
| + ClientRect* intersectionRect() { return m_intersectionRect; } |
| + Element* target() { return m_target.get(); } |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + double m_time; |
| + Member<ClientRect> m_boundingClientRect; |
| + Member<ClientRect> m_rootBounds; |
| + Member<ClientRect> m_intersectionRect; |
| + RefPtrWillBeMember<Element> m_target; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // IntersectionObserverEntry_h |