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

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: CR fixes 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 final : public GarbageCollected<ResizeObserverCon troller> {
17 public:
18 ResizeObserverController();
19
20 void addObserver(ResizeObserver&);
21
22 DECLARE_TRACE();
23
24 private:
25 // Active observers
26 HeapHashSet<WeakMember<ResizeObserver>> m_observers;
27 };
28
29 } // namespace blink
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698