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

Unified Diff: third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h

Issue 1510603005: [Do not submit] Worklet implementation. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A basic CompositorWorklet implementation. Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
diff --git a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h b/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
new file mode 100644
index 0000000000000000000000000000000000000000..dc7be501e8acc40c0510e2f1ef3e815798e6e198
--- /dev/null
+++ b/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DOMWindowWorklet_h
+#define DOMWindowWorklet_h
+
+#include "core/frame/DOMWindowProperty.h"
+#include "core/frame/LocalDOMWindow.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class DOMWindow;
+class ExecutionContext;
+class Worklet;
+
+class DOMWindowWorklet final : public NoBaseWillBeGarbageCollected<DOMWindowWorklet>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowWorklet);
+ DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowWorklet);
+ USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowWorklet);
+public:
+ static DOMWindowWorklet& from(LocalDOMWindow&);
+ static Worklet* worklet(ExecutionContext*, DOMWindow&);
+ Worklet* worklet(ExecutionContext*) const;
+
+ DECLARE_TRACE();
+
+private:
+ explicit DOMWindowWorklet(LocalDOMWindow&);
+ static const char* supplementName();
+
+ mutable PersistentWillBeMember<Worklet> m_worklet;
+};
+
+} // namespace blink
+
+#endif // DOMWindowWorklet_h
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/DEPS ('k') | third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698