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

Side by Side Diff: third_party/WebKit/Source/core/mojo/Mojo.h

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: addressed comments Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef Mojo_h
6 #define Mojo_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "mojo/public/cpp/system/core.h"
10
11 namespace blink {
12
13 class MojoCreateMessagePipeResult;
14
15 class Mojo final : public GarbageCollected<Mojo>, public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO();
17
18 public:
19 CORE_EXPORT static Mojo* create();
20
21 // MojoResult
22 static const MojoResult kResultOk = MOJO_HANDLE_SIGNAL_NONE;
23 static const MojoResult kResultCancelled = MOJO_RESULT_CANCELLED;
24 static const MojoResult kResultUnknown = MOJO_RESULT_UNKNOWN;
25 static const MojoResult kResultInvalidArgument = MOJO_RESULT_INVALID_ARGUMENT;
26 static const MojoResult kResultDeadlineExceeded =
27 MOJO_RESULT_DEADLINE_EXCEEDED;
28 static const MojoResult kResultNotFound = MOJO_RESULT_NOT_FOUND;
29 static const MojoResult kResultAlreadyExists = MOJO_RESULT_ALREADY_EXISTS;
30 static const MojoResult kResultPermissionDenied =
31 MOJO_RESULT_PERMISSION_DENIED;
32 static const MojoResult kResultResourceExhausted =
33 MOJO_RESULT_RESOURCE_EXHAUSTED;
34 static const MojoResult kResultFailedPrecondition =
35 MOJO_RESULT_FAILED_PRECONDITION;
36 static const MojoResult kResultAborted = MOJO_RESULT_ABORTED;
37 static const MojoResult kResultOutOfRange = MOJO_RESULT_OUT_OF_RANGE;
38 static const MojoResult kResultUnimplemented = MOJO_RESULT_UNIMPLEMENTED;
39 static const MojoResult kResultInternal = MOJO_RESULT_INTERNAL;
40 static const MojoResult kResultUnavailable = MOJO_RESULT_UNAVAILABLE;
41 static const MojoResult kResultDataLoss = MOJO_RESULT_DATA_LOSS;
42 static const MojoResult kResultBusy = MOJO_RESULT_BUSY;
43 static const MojoResult kResultShouldWait = MOJO_RESULT_SHOULD_WAIT;
44
45 void createMessagePipe(MojoCreateMessagePipeResult&);
46
47 DEFINE_INLINE_TRACE() {}
48 };
49
50 } // namespace blink
51
52 #endif // Mojo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698