Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 module content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "mojo/common/string16.mojom"; | 7 import "mojo/common/string16.mojom"; |
| 8 import "services/ui/public/interfaces/ime/ime.mojom"; | 8 import "services/ui/public/interfaces/ime/ime.mojom"; |
| 9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 Redo(); | 51 Redo(); |
| 52 Cut(); | 52 Cut(); |
| 53 Copy(); | 53 Copy(); |
| 54 CopyToFindPboard(); | 54 CopyToFindPboard(); |
| 55 Paste(); | 55 Paste(); |
| 56 PasteAndMatchStyle(); | 56 PasteAndMatchStyle(); |
| 57 Delete(); | 57 Delete(); |
| 58 SelectAll(); | 58 SelectAll(); |
| 59 CollapseSelection(); | 59 CollapseSelection(); |
| 60 | 60 |
| 61 // Returns the hit-tested remote frame id for the given coordinates. | |
|
rjkroege
2017/06/26 18:29:52
how are we suppose to use this API from ui/ws? Cou
Navid Zolghadr
2017/07/17 18:54:45
riajiang@ I believe you have written some code tha
| |
| 62 HitTestFrameAt(gfx.mojom.PointF point) => (int32 frame_id); | |
|
rjkroege
2017/06/26 18:29:52
What is your expectation of the coordinate system
riajiang
2017/06/27 16:37:28
Input |point| would be in display-coordinate-pixel
rjkroege
2017/06/28 18:40:19
display coordinate pixels is likely wrong. I clai
Navid Zolghadr
2017/06/28 19:25:06
Essentially you are asking frame X to tell you the
| |
| 63 | |
| 61 // Replaces the selected region or a word around the cursor with the | 64 // Replaces the selected region or a word around the cursor with the |
| 62 // specified string. | 65 // specified string. |
| 63 Replace(mojo.common.mojom.String16 word); | 66 Replace(mojo.common.mojom.String16 word); |
| 64 | 67 |
| 65 // Replaces the misspelling in the selected region with the specified string. | 68 // Replaces the misspelling in the selected region with the specified string. |
| 66 ReplaceMisspelling(mojo.common.mojom.String16 word); | 69 ReplaceMisspelling(mojo.common.mojom.String16 word); |
| 67 | 70 |
| 68 // Requests the renderer to select the region between two points. | 71 // Requests the renderer to select the region between two points. |
| 69 // Expects a SelectRange_ACK message when finished. | 72 // Expects a SelectRange_ACK message when finished. |
| 70 SelectRange(gfx.mojom.Point base, gfx.mojom.Point extent); | 73 SelectRange(gfx.mojom.Point base, gfx.mojom.Point extent); |
| 71 | 74 |
| 72 // Sent by the browser to ask the renderer to adjust the selection start and | 75 // Sent by the browser to ask the renderer to adjust the selection start and |
| 73 // end points by the given amounts. A negative amount moves the selection | 76 // end points by the given amounts. A negative amount moves the selection |
| 74 // towards the beginning of the document, a positive amount moves the | 77 // towards the beginning of the document, a positive amount moves the |
| 75 // selection towards the end of the document. | 78 // selection towards the end of the document. |
| 76 AdjustSelectionByCharacterOffset(int32 start, int32 end); | 79 AdjustSelectionByCharacterOffset(int32 start, int32 end); |
| 77 | 80 |
| 78 // Requests the renderer to move the selection extent point to a new position. | 81 // Requests the renderer to move the selection extent point to a new position. |
| 79 // Expects a MoveRangeSelectionExtent_ACK message when finished. | 82 // Expects a MoveRangeSelectionExtent_ACK message when finished. |
| 80 MoveRangeSelectionExtent(gfx.mojom.Point extent); | 83 MoveRangeSelectionExtent(gfx.mojom.Point extent); |
| 81 | 84 |
| 82 // TODO(dtapuska): Implement WidgetInputHandler. | 85 // TODO(dtapuska): Implement WidgetInputHandler. |
| 83 // GetWidgetInputHandler(associated WidgetInputHandler& interface_request); | 86 // GetWidgetInputHandler(associated WidgetInputHandler& interface_request); |
| 84 }; | 87 }; |
| OLD | NEW |