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

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

Issue 2272163003: ResizeObserver: Olipan C++ tests (Closed)
Patch Set: CR fixes 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ResizeObserverTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 const HeapHashSet<WeakMember<ResizeObserver>>& observers() { return m_observ ers; }
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ResizeObserverTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698