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

Unified Diff: components/arc/common/ime.mojom

Issue 2876693004: Implement GetTextFromRange(), GetTextRange() and GetSelectionRange() for ArcImeService. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/arc/common/ime.mojom
diff --git a/components/arc/common/ime.mojom b/components/arc/common/ime.mojom
index ae6d4e5bb9c79ba69be1ce09644b5f012b69be47..746274ef50b8577b515b04ec8de9e0b1792e408d 100644
--- a/components/arc/common/ime.mojom
+++ b/components/arc/common/ime.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Next MinVersion: 5
+// Next MinVersion: 6
module arc.mojom;
@@ -32,6 +32,12 @@ struct CursorRect {
int32 bottom;
};
+[MinVersion=5]
+struct TextRange {
+ uint32 start;
+ uint32 end;
hidehiko 2017/05/11 14:32:31 Is |end| inclusive or exclusive? As this is interf
yhanada 2017/05/12 07:52:06 Done.
+};
+
// Represents a single segment of text currently composed by IME.
struct CompositionSegment {
// Start offset of the segment in UTF-16 index.
@@ -55,6 +61,12 @@ interface ImeHost {
// Show virtual keyboard of Chrome OS if needed.
[MinVersion=2] ShowImeIfNeeded@3();
+
+ // Notifies Chrome that the cursor position has changed and
+ // also sends surrounding text.
+ [MinVersion=5] OnCursorRectChangedWithSurroundingText@4(
hidehiko 2017/05/11 14:32:31 Could you document the args? Specifically what is
kinaba 2017/05/12 01:28:35 Could you also add a comment why all these info ar
yhanada 2017/05/12 07:52:06 Done.
+ CursorRect rect, TextRange text_range, string text_in_range,
+ TextRange selection_range);
};
// Next method ID: 6

Powered by Google App Engine
This is Rietveld 408576698