Bug 1478095 - Implement 'SuggestResult.deletable' and 'omnibox.onDeleteSuggestion' r=mixedpuppy,adw
Differential Revision: https://phabricator.services.mozilla.com/D159475
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
"minLength": 1,
|
||||
"description": "The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. <dim><match>dimmed match</match></dim>. You must escape the five predefined entities to display them as text: stackoverflow.com/a/1091953/89484 "
|
||||
},
|
||||
"deletable": {
|
||||
"type": "boolean",
|
||||
"optional": true,
|
||||
"description": "Whether the suggest result can be deleted by the user."
|
||||
},
|
||||
"descriptionStyles": {
|
||||
"optional": true,
|
||||
"unsupported": true,
|
||||
@@ -65,7 +70,10 @@
|
||||
"description": "The style ranges for the description, as provided by the extension.",
|
||||
"properties": {
|
||||
"offset": { "type": "integer" },
|
||||
"type": { "description": "The style type", "$ref": "DescriptionStyleType"},
|
||||
"type": {
|
||||
"description": "The style type",
|
||||
"$ref": "DescriptionStyleType"
|
||||
},
|
||||
"length": { "type": "integer", "optional": true }
|
||||
}
|
||||
}
|
||||
@@ -106,7 +114,10 @@
|
||||
"description": "The style ranges for the description, as provided by the extension.",
|
||||
"properties": {
|
||||
"offset": { "type": "integer" },
|
||||
"type": { "description": "The style type", "$ref": "DescriptionStyleType"},
|
||||
"type": {
|
||||
"description": "The style type",
|
||||
"$ref": "DescriptionStyleType"
|
||||
},
|
||||
"length": { "type": "integer", "optional": true }
|
||||
}
|
||||
}
|
||||
@@ -195,6 +206,17 @@
|
||||
"type": "function",
|
||||
"description": "User has ended the keyword input session without accepting the input.",
|
||||
"parameters": []
|
||||
},
|
||||
{
|
||||
"name": "onDeleteSuggestion",
|
||||
"type": "function",
|
||||
"description": "User has deleted a suggested result.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user