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

Unified Diff: third_party/WebKit/Source/core/mojo/Mojo.h

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: removes visitDOMWrapper Created 3 years, 10 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
Index: third_party/WebKit/Source/core/mojo/Mojo.h
diff --git a/third_party/WebKit/Source/core/mojo/Mojo.h b/third_party/WebKit/Source/core/mojo/Mojo.h
new file mode 100644
index 0000000000000000000000000000000000000000..0000bb38a53b989f8b613bc8fac91a64f664421f
--- /dev/null
+++ b/third_party/WebKit/Source/core/mojo/Mojo.h
@@ -0,0 +1,50 @@
+// Copyright 2017 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 Mojo_h
+#define Mojo_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "mojo/public/cpp/system/core.h"
+
+namespace blink {
+
+class MojoCreateMessagePipeResult;
+
+class Mojo final : public GarbageCollected<Mojo>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ // MojoResult
+ static const MojoResult kResultOk = MOJO_RESULT_OK;
+ static const MojoResult kResultCancelled = MOJO_RESULT_CANCELLED;
+ static const MojoResult kResultUnknown = MOJO_RESULT_UNKNOWN;
+ static const MojoResult kResultInvalidArgument = MOJO_RESULT_INVALID_ARGUMENT;
+ static const MojoResult kResultDeadlineExceeded =
+ MOJO_RESULT_DEADLINE_EXCEEDED;
+ static const MojoResult kResultNotFound = MOJO_RESULT_NOT_FOUND;
+ static const MojoResult kResultAlreadyExists = MOJO_RESULT_ALREADY_EXISTS;
+ static const MojoResult kResultPermissionDenied =
+ MOJO_RESULT_PERMISSION_DENIED;
+ static const MojoResult kResultResourceExhausted =
+ MOJO_RESULT_RESOURCE_EXHAUSTED;
+ static const MojoResult kResultFailedPrecondition =
+ MOJO_RESULT_FAILED_PRECONDITION;
+ static const MojoResult kResultAborted = MOJO_RESULT_ABORTED;
+ static const MojoResult kResultOutOfRange = MOJO_RESULT_OUT_OF_RANGE;
+ static const MojoResult kResultUnimplemented = MOJO_RESULT_UNIMPLEMENTED;
+ static const MojoResult kResultInternal = MOJO_RESULT_INTERNAL;
+ static const MojoResult kResultUnavailable = MOJO_RESULT_UNAVAILABLE;
+ static const MojoResult kResultDataLoss = MOJO_RESULT_DATA_LOSS;
+ static const MojoResult kResultBusy = MOJO_RESULT_BUSY;
+ static const MojoResult kResultShouldWait = MOJO_RESULT_SHOULD_WAIT;
+
+ static void createMessagePipe(MojoCreateMessagePipeResult&);
+
+ DEFINE_INLINE_TRACE() {}
+};
+
+} // namespace blink
+
+#endif // Mojo_h

Powered by Google App Engine
This is Rietveld 408576698