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

Unified Diff: Source/modules/mediasession/MediaSessionError.h

Issue 1325493002: NOT FOR LANDING Introduce and use WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing files Created 5 years, 3 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 | « Source/modules/mediasession/MediaSession.idl ('k') | Source/modules/mediasession/MediaSessionError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasession/MediaSessionError.h
diff --git a/Source/modules/mediasession/MediaSessionError.h b/Source/modules/mediasession/MediaSessionError.h
new file mode 100644
index 0000000000000000000000000000000000000000..a90f5a38a3ea8b8d22bac744e618caca7f29737b
--- /dev/null
+++ b/Source/modules/mediasession/MediaSessionError.h
@@ -0,0 +1,28 @@
+// 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 MediaSessionError_h
+#define MediaSessionError_h
+
+#include "platform/heap/Handle.h"
+#include "public/platform/modules/mediasession/WebMediaSessionError.h"
+#include <v8/include/v8.h>
+
+namespace blink {
+
+class DOMException;
+class ScriptPromiseResolver;
+
+class MediaSessionError {
+ STATIC_ONLY(MediaSessionError);
+public:
+ // For CallbackPromiseAdapter
+ using WebType = const WebMediaSessionError&;
+ static v8::Local<v8::Value> take(ScriptPromiseResolver*, const WebMediaSessionError& webError);
+};
+
+} // namespace blink
+
+#endif // MediaSessionError_h
+
« no previous file with comments | « Source/modules/mediasession/MediaSession.idl ('k') | Source/modules/mediasession/MediaSessionError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698