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

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

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix dcheng's initial comments 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..d53b0f15f0bcc33542b5ec94590ecf679c27d1c1
--- /dev/null
+++ b/content/common/input/input_handler.mojom
@@ -0,0 +1,34 @@
+// 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 "mojo/common/string16.mojom";
+import "services/ui/public/interfaces/ime/ime.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+interface FrameInputHandler
dcheng 2017/05/19 14:59:33 Nit: Add some high-level comments for this interfa
dtapuska 2017/05/23 16:01:19 Done.
+{
+ SetCompositionFromExistingText(int32 start, int32 end, array<ui.mojom.CompositionUnderline> underlines);
dcheng 2017/05/19 14:59:33 Add a TODO to import the IPC message comments (or
dtapuska 2017/05/23 16:01:19 Done.
+ ExtendSelectionAndDelete(int32 before, int32 after);
+ DeleteSurroundingText(int32 before, int32 after);
+ DeleteSurroundingTextInCodePoints(int32 before, int32 after);
+ SetEditableSelectionOffsets(int32 start, int32 end);
+ ExecuteEditCommand(string command, mojo.common.mojom.String16? value);
+ Undo();
+ Redo();
+ Cut();
+ Copy();
+ CopyToFindPboard();
+ Paste();
+ PasteAndMatchStyle();
+ Replace(mojo.common.mojom.String16 word);
+ ReplaceMisspelling(mojo.common.mojom.String16 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