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

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

Issue 2161313002: ResizeObserver implementation, part 2: lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ResizeObserverController_h
6 #define ResizeObserverController_h
7
8 #include "platform/heap/Handle.h"
9
10 namespace blink {
11
12 class ResizeObserver;
13
14 // ResizeObserverController keeps track of all ResizeObservers
15 // in a single Document.
16 class ResizeObserverController : public GarbageCollected<ResizeObserverControlle r> {
esprehn 2016/07/21 17:52:29 final
atotic1 2016/07/21 19:15:00 Done.
17
esprehn 2016/07/21 17:52:29 remove blank line
atotic1 2016/07/21 19:15:00 Done.
18 public:
19
esprehn 2016/07/21 17:52:29 you don't need all these blank lines around the pu
atotic1 2016/07/21 19:15:00 Done.
20 ResizeObserverController();
21
22 void addObserver(ResizeObserver&);
23
24 DECLARE_TRACE();
25
26 private:
27
28 using ObserverSet = HeapHashSet<WeakMember<ResizeObserver>>;
esprehn 2016/07/21 17:52:29 remove
atotic1 2016/07/21 19:15:00 I prefer naming complex containers. It spares me f
29 // Active observers
30 ObserverSet m_observers;
31 };
32
33 } // namespace blink
34
35 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698