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

Unified Diff: content/common/input/input_handler.mojom

Issue 2884243003: Add a mojo channel for frame messages. (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: content/common/input/input_handler.mojom
diff --git a/content/common/input/input_handler.mojom b/content/common/input/input_handler.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..2a1d7c60a6639a4cbc16c1a28a7d112275c87669
--- /dev/null
+++ b/content/common/input/input_handler.mojom
@@ -0,0 +1,33 @@
+// Copyright 2017 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 content.mojom;
+
+import "services/ui/public/interfaces/ime/ime.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+interface FrameInputHandler
+{
+ SetCompositionFromExistingText(int32 start, int32 end, array<ui.mojom.CompositionUnderline> underlines);
+ ExtendSelectionAndDelete(int32 before, int32 after);
+ DeleteSurroundingText(int32 before, int32 after);
+ DeleteSurroundingTextInCodePoints(int32 before, int32 after);
+ SetEditableSelectionOffsets(int32 start, int32 end);
+ ExecuteEditCommand(string command, string? value);
+ Undo();
+ Redo();
+ Cut();
+ Copy();
+ CopyToFindPboard();
+ Paste();
+ PasteAndMatchStyle();
+ Replace(string word);
+ ReplaceMisspelling(string word);
+ Delete();
+ SelectAll();
+ CollapseSelection();
+ SelectRange(gfx.mojom.Point base, gfx.mojom.Point extent);
+ AdjustSelectionByCharacterOffset(int32 start, int32 end);
+ MoveRangeSelectionExtent(gfx.mojom.Point extent);
+};

Powered by Google App Engine
This is Rietveld 408576698