blob: eb44bef306ca1160f7a7d0d5bb2f4556d86e0e1d [file] [log] [blame]
// Copyright (c) 2012 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.
[
{
"namespace": "experimental.input.virtualKeyboard",
"description": "none",
"functions": [
{
"name": "insertText",
"type": "function",
"description": "Inserts text into the currently focused text field.",
"parameters": [
{ "name": "text",
"type": "string",
"description": "The text that will be inserted."
},
{ "type": "function",
"name": "callback",
"optional": true,
"description": "Called when the insertion is completed.",
"parameters": []
}
]
},
{
"name": "moveCursor",
"type": "function",
"description": "Move cursor on the current focused textfield by swipe.",
"parameters": [
{ "name": "swipe_direction",
"type": "integer",
"discription": "The direction of the cursor movement."
},
{ "name": "modifier_flags",
"type": "integer",
"description": "Bitmask representing the state of the system modifier keys."
},
{ "type": "function",
"name": "callback",
"optional": true,
"decription": "called when the swipe movement is completed.",
"parameters": []
}
]
}
]
}
]