| OLD | NEW |
| 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 WindowPaintWorklet_h | 5 #ifndef WindowPaintWorklet_h |
| 6 #define WindowPaintWorklet_h | 6 #define WindowPaintWorklet_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 static WindowPaintWorklet& from(LocalDOMWindow&); | 24 static WindowPaintWorklet& from(LocalDOMWindow&); |
| 25 static Worklet* paintWorklet(ExecutionContext*, DOMWindow&); | 25 static Worklet* paintWorklet(ExecutionContext*, DOMWindow&); |
| 26 PaintWorklet* paintWorklet(ExecutionContext*) const; | 26 PaintWorklet* paintWorklet(ExecutionContext*) const; |
| 27 | 27 |
| 28 DECLARE_TRACE(); | 28 DECLARE_TRACE(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 explicit WindowPaintWorklet(LocalDOMWindow&); | 31 explicit WindowPaintWorklet(LocalDOMWindow&); |
| 32 static const char* supplementName(); | 32 static const char* supplementName(); |
| 33 | 33 |
| 34 // DOMWindowProperty |
| 35 void willDetachGlobalObjectFromFrame() final; |
| 36 |
| 34 mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet; | 37 mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet; |
| 35 }; | 38 }; |
| 36 | 39 |
| 37 } // namespace blink | 40 } // namespace blink |
| 38 | 41 |
| 39 #endif // WindowPaintWorklet_h | 42 #endif // WindowPaintWorklet_h |
| OLD | NEW |