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

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

Issue 1613543002: Use DOMHighResTimeStamp for notification time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: syntax error in test Created 4 years, 10 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IntersectionObserver_h 5 #ifndef IntersectionObserver_h
6 #define IntersectionObserver_h 6 #define IntersectionObserver_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/IntersectionObservation.h" 10 #include "core/dom/IntersectionObservation.h"
(...skipping 23 matching lines...) Expand all
34 HeapVector<Member<IntersectionObserverEntry>> takeRecords(); 34 HeapVector<Member<IntersectionObserverEntry>> takeRecords();
35 35
36 Node* root() const { return m_root.get(); } 36 Node* root() const { return m_root.get(); }
37 LayoutObject* rootLayoutObject() const; 37 LayoutObject* rootLayoutObject() const;
38 bool hasPercentMargin() const; 38 bool hasPercentMargin() const;
39 const Length& topMargin() const { return m_topMargin; } 39 const Length& topMargin() const { return m_topMargin; }
40 const Length& rightMargin() const { return m_rightMargin; } 40 const Length& rightMargin() const { return m_rightMargin; }
41 const Length& bottomMargin() const { return m_bottomMargin; } 41 const Length& bottomMargin() const { return m_bottomMargin; }
42 const Length& leftMargin() const { return m_leftMargin; } 42 const Length& leftMargin() const { return m_leftMargin; }
43 bool isDescendantOfRoot(const Element*) const; 43 bool isDescendantOfRoot(const Element*) const;
44 void computeIntersectionObservations(double timestamp); 44 void computeIntersectionObservations();
45 void enqueueIntersectionObserverEntry(IntersectionObserverEntry&); 45 void enqueueIntersectionObserverEntry(IntersectionObserverEntry&);
46 void applyRootMargin(LayoutRect&) const; 46 void applyRootMargin(LayoutRect&) const;
47 unsigned firstThresholdGreaterThan(float ratio) const; 47 unsigned firstThresholdGreaterThan(float ratio) const;
48 void deliver(); 48 void deliver();
49 void setActive(bool); 49 void setActive(bool);
50 void disconnect(); 50 void disconnect();
51 void removeObservation(IntersectionObservation&); 51 void removeObservation(IntersectionObservation&);
52 bool hasEntries() const { return m_entries.size(); } 52 bool hasEntries() const { return m_entries.size(); }
53 53
54 DECLARE_TRACE(); 54 DECLARE_TRACE();
(...skipping 11 matching lines...) Expand all
66 Vector<float> m_thresholds; 66 Vector<float> m_thresholds;
67 Length m_topMargin; 67 Length m_topMargin;
68 Length m_rightMargin; 68 Length m_rightMargin;
69 Length m_bottomMargin; 69 Length m_bottomMargin;
70 Length m_leftMargin; 70 Length m_leftMargin;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // IntersectionObserver_h 75 #endif // IntersectionObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698