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

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

Issue 1453823005: Implement Linux IME support (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Avoid modifying NativeViewport Created 5 years, 1 month 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 keyboard; 6 module keyboard;
7 7
8 import "native_viewport/interfaces/native_viewport.mojom";
9
8 struct CompletionData { 10 struct CompletionData {
9 int64 id; 11 int64 id;
10 int32 position; 12 int32 position;
11 string text; 13 string text;
12 string label; 14 string label;
13 }; 15 };
14 16
15 struct CorrectionData { 17 struct CorrectionData {
16 int32 offset; 18 int32 offset;
17 string old_text; 19 string old_text;
(...skipping 24 matching lines...) Expand all
42 DATETIME, 44 DATETIME,
43 }; 45 };
44 46
45 interface KeyboardService { 47 interface KeyboardService {
46 Show(KeyboardClient client, KeyboardType type); 48 Show(KeyboardClient client, KeyboardType type);
47 ShowByRequest(); 49 ShowByRequest();
48 Hide(); 50 Hide();
49 SetText(string text); 51 SetText(string text);
50 SetSelection(int32 start, int32 end); 52 SetSelection(int32 start, int32 end);
51 }; 53 };
54
55 interface KeyboardServiceFactory {
56 CreateKeyboardService(
57 mojo.NativeViewportEventDispatcher& keyEventDispatcher,
58 KeyboardService& serviceRequest);
59 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698