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

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

Issue 2272163003: ResizeObserver: Olipan C++ tests (Closed)
Patch Set: Olipan C++ tests Created 4 years, 3 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 ResizeObserverController_h 5 #ifndef ResizeObserverController_h
6 #define ResizeObserverController_h 6 #define ResizeObserverController_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 20 matching lines...) Expand all
31 size_t gatherObservations(size_t deeperThan); 31 size_t gatherObservations(size_t deeperThan);
32 // Returns true if gatherObservations has skipped observations 32 // Returns true if gatherObservations has skipped observations
33 // because they were too shallow. 33 // because they were too shallow.
34 bool skippedObservations(); 34 bool skippedObservations();
35 void deliverObservations(); 35 void deliverObservations();
36 void clearObservations(); 36 void clearObservations();
37 void observerChanged() { m_observersChanged = true; } 37 void observerChanged() { m_observersChanged = true; }
38 38
39 DECLARE_TRACE(); 39 DECLARE_TRACE();
40 40
41 // For testing only.
42 HeapHashSet<WeakMember<ResizeObserver>>& observers() { return m_observers; }
esprehn 2016/08/30 21:25:23 const HeapHashSet<...> observers() const { ... }
atotic1 2016/08/31 19:05:15 done.
43
41 private: 44 private:
42 // Active observers 45 // Active observers
43 HeapHashSet<WeakMember<ResizeObserver>> m_observers; 46 HeapHashSet<WeakMember<ResizeObserver>> m_observers;
44 // True if any observers were changed since last notification. 47 // True if any observers were changed since last notification.
45 bool m_observersChanged; 48 bool m_observersChanged;
46 }; 49 };
47 50
48 } // namespace blink 51 } // namespace blink
49 52
50 #endif 53 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698