| OLD | NEW |
| 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 module mojo.terminal; | 6 module mojo.terminal; |
| 6 | 7 |
| 7 import "files/public/interfaces/file.mojom"; | 8 import "files/public/interfaces/file.mojom"; |
| 8 import "files/public/interfaces/types.mojom"; | 9 import "files/public/interfaces/types.mojom"; |
| 9 import "terminal/public/interfaces/terminal_client.mojom"; | 10 import "terminal/public/interfaces/terminal_client.mojom"; |
| 10 | 11 |
| 11 // Interface for actual terminal programs, in particular, for a single terminal | 12 // Interface for actual terminal programs, in particular, for a single terminal |
| 12 // display. For terminals that display output and are embeddable, this will | 13 // display. For terminals that display output and are embeddable, this will |
| 13 // typically be a service provided by the |ViewManagerClient| (see |OnEmbed()|). | 14 // typically be a service provided by the |ViewManagerClient| (see |OnEmbed()|). |
| 14 interface Terminal { | 15 interface Terminal { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 GetSize() => (mojo.files.Error error, uint32 rows, uint32 columns); | 30 GetSize() => (mojo.files.Error error, uint32 rows, uint32 columns); |
| 30 | 31 |
| 31 // Sets the size of terminal (in number of rows/columns of text); 0 for | 32 // Sets the size of terminal (in number of rows/columns of text); 0 for |
| 32 // rows or columns means to compute that automatically. If |reset| is true, it | 33 // rows or columns means to compute that automatically. If |reset| is true, it |
| 33 // will reset (clear) the terminal. Note that it may not set exactly the | 34 // will reset (clear) the terminal. Note that it may not set exactly the |
| 34 // requested size. (On success, the response will provide the actual set | 35 // requested size. (On success, the response will provide the actual set |
| 35 // size.) | 36 // size.) |
| 36 SetSize(uint32 rows, uint32 columns, bool reset) | 37 SetSize(uint32 rows, uint32 columns, bool reset) |
| 37 => (mojo.files.Error error, uint32 rows, uint32 columns); | 38 => (mojo.files.Error error, uint32 rows, uint32 columns); |
| 38 }; | 39 }; |
| OLD | NEW |