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

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

Issue 2186203002: [worklets] Add stub classes for window.animationWorklet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/worklet/ThreadedWorkletGlobalScopeProxy.h
diff --git a/third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h b/third_party/WebKit/Source/modules/worklet/ThreadedWorkletGlobalScopeProxy.h
similarity index 32%
copy from third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
copy to third_party/WebKit/Source/modules/worklet/ThreadedWorkletGlobalScopeProxy.h
index 6fce9256a167db632da6f952d8bea454ed09d743..e8d5d0e5ee5bd94828d5c26a500dda2e8a9076b9 100644
--- a/third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
+++ b/third_party/WebKit/Source/modules/worklet/ThreadedWorkletGlobalScopeProxy.h
@@ -2,23 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebMIDIOptions_h
-#define WebMIDIOptions_h
+#ifndef ThreadedWorkletGlobalScopeProxy_h
+#define ThreadedWorkletGlobalScopeProxy_h
-namespace blink {
+#include "core/workers/WorkletGlobalScopeProxy.h"
-struct WebMIDIOptions {
- enum class SysexPermission { WithSysex, WithoutSysex };
+namespace blink {
- explicit WebMIDIOptions(SysexPermission sysex)
- : sysex(sysex)
+class ThreadedWorkletGlobalScopeProxy : public WorkletGlobalScopeProxy {
+public:
+ void evaluateScript(const String& source, const KURL& scriptURL) final
{
+ // TODO(ikilpatrick): implement.
}
- const SysexPermission sysex;
- // TODO(crbug.com/502127): Add bool software to follow the latest spec.
+ void terminateWorkletGlobalScope() final
+ {
+ // TODO(ikilpatrick): implement.
+ }
};
} // namespace blink
-#endif // WebMIDIOptions_h
+#endif // ThreadedWorkletGlobalScopeProxy_h
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698