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

Side by Side Diff: third_party/WebKit/Source/core/mojo/MojoHandle.idl

Issue 2732163002: Implements JS bindings for mojo data pipe. (Closed)
Patch Set: rebase Created 3 years, 9 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 callback MojoWatchCallback = void (MojoResult result); 5 callback MojoWatchCallback = void (MojoResult result);
6 6
7 [ 7 [
8 RuntimeEnabled=MojoJS, 8 RuntimeEnabled=MojoJS,
9 ] interface MojoHandle { 9 ] interface MojoHandle {
10 void close(); 10 void close();
11 [CallWith=ScriptState] MojoWatcher watch(MojoHandleSignals signals, MojoWatc hCallback callback); 11 [CallWith=ScriptState] MojoWatcher watch(MojoHandleSignals signals, MojoWatc hCallback callback);
12 12
13 // TODO(alokp): Create MessagePipeHandle, a subclass of MojoHandle 13 // TODO(alokp): Create MojoMessagePipeHandle, a subclass of MojoHandle
14 // and move the following member functions. 14 // and move the following member functions.
15 MojoResult writeMessage(BufferSource buffer, sequence<MojoHandle> handles); 15 MojoResult writeMessage(BufferSource buffer, sequence<MojoHandle> handles);
16 MojoReadMessageResult readMessage(optional MojoReadMessageFlags flags); 16 MojoReadMessageResult readMessage(optional MojoReadMessageFlags flags);
17 17
18 // TODO(alokp): Create SharedBufferHandle, a subclass of MojoHandle 18 // TODO(alokp): Create MojoDataPipeProducerHandle and MojoDataPipeConsumerHa ndle,
19 // subclasses of MojoHandle and move the following member functions.
20 MojoWriteDataResult writeData(BufferSource buffer, optional MojoWriteDataOpt ions options);
21 MojoReadDataResult queryData();
22 MojoReadDataResult discardData(unsigned long numBytes, optional MojoDiscardD ataOptions options);
23 MojoReadDataResult readData(BufferSource buffer, optional MojoReadDataOption s options);
24
25 // TODO(alokp): Create MojoSharedBufferHandle, a subclass of MojoHandle
19 // and move the following member functions. 26 // and move the following member functions.
20 MojoMapBufferResult mapBuffer(unsigned long offset, unsigned long numBytes); 27 MojoMapBufferResult mapBuffer(unsigned long offset, unsigned long numBytes);
21 MojoCreateSharedBufferResult duplicateBufferHandle(optional MojoDuplicateBuf ferHandleOptions options); 28 MojoCreateSharedBufferResult duplicateBufferHandle(optional MojoDuplicateBuf ferHandleOptions options);
22 }; 29 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/mojo/MojoHandle.cpp ('k') | third_party/WebKit/Source/core/mojo/MojoReadDataOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698