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

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

Issue 2173203002: ResizeObserver pt3: observation computation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing CORE_EXPORT Created 4 years, 4 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 ResizeObserver_h 5 #ifndef ResizeObserver_h
6 #define ResizeObserver_h 6 #define ResizeObserver_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class Document; 13 class Document;
14 class Element; 14 class Element;
15 class ResizeObserverCallback; 15 class ResizeObserverCallback;
16 class ResizeObserverController; 16 class ResizeObserverController;
17 class ResizeObservation; 17 class ResizeObservation;
18 18
19 // ResizeObserver represents ResizeObserver javascript api: 19 // ResizeObserver represents ResizeObserver javascript api:
20 // https://github.com/WICG/ResizeObserver/ 20 // https://github.com/WICG/ResizeObserver/
21 class ResizeObserver final : public GarbageCollectedFinalized<ResizeObserver>, p ublic ScriptWrappable { 21 class CORE_EXPORT ResizeObserver final : public GarbageCollectedFinalized<Resize Observer>, public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
23 public: 23 public:
24 24
25 static ResizeObserver* create(Document&, ResizeObserverCallback*); 25 static ResizeObserver* create(Document&, ResizeObserverCallback*);
26 26
27 virtual ~ResizeObserver() {}; 27 virtual ~ResizeObserver() {};
28 28
29 // API methods 29 // API methods
30 void observe(Element*); 30 void observe(Element*);
31 void unobserve(Element*); 31 void unobserve(Element*);
(...skipping 12 matching lines...) Expand all
44 // List of elements we are observing 44 // List of elements we are observing
45 ObservationList m_observations; 45 ObservationList m_observations;
46 46
47 WeakMember<ResizeObserverController> m_controller; 47 WeakMember<ResizeObserverController> m_controller;
48 }; 48 };
49 49
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // ResizeObserver_h 53 #endif // ResizeObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698