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

Side by Side Diff: mojo/services/terminal/interfaces/terminal.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.terminal; 6 module mojo.terminal;
7 7
8 import "files/interfaces/file.mojom"; 8 import "files/interfaces/file.mojom";
9 import "files/interfaces/types.mojom"; 9 import "files/interfaces/types.mojom";
10 import "terminal/interfaces/terminal_client.mojom"; 10 import "terminal/interfaces/terminal_client.mojom";
11 11
12 // Interface for actual terminal programs, in particular, for a single terminal 12 // Interface for actual terminal programs, in particular, for a single terminal
13 // display. For terminals that display output and are embeddable, this will 13 // display. For terminals that display output and are embeddable, this will
14 // typically be a service provided by the |ViewManagerClient| (see |OnEmbed()|). 14 // typically be a service provided by the |ViewManagerClient| (see |OnEmbed()|).
15 [ServiceName="mojo::terminal::Terminal"] 15 [ServiceName="mojo::terminal::Terminal"]
16 interface Terminal { 16 interface Terminal {
17 // Connects to the terminal. If |force| is true, it will terminate any 17 // Connects to the terminal. If |force| is true, it will terminate any
18 // existing connection. The reply is sent when |terminal| is no longer 18 // existing connection. The reply is sent when |terminal| is no longer
19 // connected. It is not successful only on "synchronous"/immediate failure, 19 // connected. It is not successful only on "synchronous"/immediate failure,
20 // e.g., if something else is already connected (|force| is false). 20 // e.g., if something else is already connected (|force| is false).
21 Connect(mojo.files.File& terminal_file, bool force) 21 Connect(mojo.files.File& terminal_file, bool force) => (mojo.files.Error error );
22 => (mojo.files.Error error);
23 22
24 // Asks the terminal to connect to the given client. (|force| and response as 23 // Asks the terminal to connect to the given client. (|force| and response as
25 // are for |Connect()|.) 24 // are for |Connect()|.)
26 ConnectToClient(TerminalClient terminal_client, bool force) 25 ConnectToClient(TerminalClient terminal_client, bool force) => (mojo.files.Err or error);
27 => (mojo.files.Error error);
28 26
29 // Gets the size of terminal (in number of rows/columns of text). (|rows| and 27 // Gets the size of terminal (in number of rows/columns of text). (|rows| and
30 // |columns| are valid only on success.) 28 // |columns| are valid only on success.)
31 GetSize() => (mojo.files.Error error, uint32 rows, uint32 columns); 29 GetSize() => (mojo.files.Error error, uint32 rows, uint32 columns);
32 30
33 // Sets the size of terminal (in number of rows/columns of text); 0 for 31 // Sets the size of terminal (in number of rows/columns of text); 0 for
34 // rows or columns means to compute that automatically. If |reset| is true, it 32 // rows or columns means to compute that automatically. If |reset| is true, it
35 // will reset (clear) the terminal. Note that it may not set exactly the 33 // will reset (clear) the terminal. Note that it may not set exactly the
36 // requested size. (On success, the response will provide the actual set 34 // requested size. (On success, the response will provide the actual set
37 // size.) 35 // size.)
38 SetSize(uint32 rows, uint32 columns, bool reset) 36 SetSize(uint32 rows, uint32 columns, bool reset) => (mojo.files.Error error, u int32 rows, uint32 columns);
39 => (mojo.files.Error error, uint32 rows, uint32 columns);
40 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698