| Index: mojo/services/keyboard/public/interfaces/keyboard.mojom
|
| diff --git a/mojo/services/keyboard/public/interfaces/keyboard.mojom b/mojo/services/keyboard/public/interfaces/keyboard.mojom
|
| index d11253e40fd08b68c86f64bb4143719090fa594d..d316513a6ae0d4fee9cea017214ce6b947797877 100644
|
| --- a/mojo/services/keyboard/public/interfaces/keyboard.mojom
|
| +++ b/mojo/services/keyboard/public/interfaces/keyboard.mojom
|
| @@ -1,10 +1,33 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -module mojo;
|
| +module keyboard;
|
|
|
| -interface Keyboard {
|
| - Show();
|
| +struct CompletionData {
|
| + int64 id;
|
| + int32 position;
|
| + string text;
|
| + string label;
|
| +};
|
| +
|
| +struct CorrectionData {
|
| + int32 offset;
|
| + string old_text;
|
| + string new_text;
|
| +};
|
| +
|
| +interface KeyboardClient {
|
| + CommitCompletion(CompletionData completion);
|
| + CommitCorrection(CorrectionData correction);
|
| + CommitText(string text, int32 newCursorPosition);
|
| + DeleteSurroundingText(int32 beforeLength, int32 afterLength);
|
| + SetComposingRegion(int32 start, int32 end);
|
| + SetComposingText(string text, int32 newCursorPosition);
|
| + SetSelection(int32 start, int32 end);
|
| +};
|
| +
|
| +interface KeyboardService {
|
| + Show(KeyboardClient client);
|
| Hide();
|
| };
|
|
|