Chromium Code Reviews| 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); |
| +}; |