| 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 [DartUriBase="mojo/services/console/public/interfaces"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 // A super simple readline interface. | 8 // A super simple readline interface. |
| 8 interface Console { | 9 interface Console { |
| 9 // Retrieves a line. | 10 // Retrieves a line. |
| 10 ReadLine() => (bool success, string line); | 11 ReadLine() => (bool success, string line); |
| 11 | 12 |
| 12 // Prints one or more lines. Responds when the lines have been | 13 // Prints one or more lines. Responds when the lines have been |
| 13 // output. |lines| can be an empty array. | 14 // output. |lines| can be an empty array. |
| 14 PrintLines(array<string> lines) => (bool success); | 15 PrintLines(array<string> lines) => (bool success); |
| 15 }; | 16 }; |
| OLD | NEW |