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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/examples/api/omnibox/background.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index c387aaaf51ae5f598c491b1b83f81b48c6826d11..c6094b6020d96b554ced8403e8dab57df1347fc2 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -3015,5 +3015,72 @@
}
],
"events": []
+ },
+ {
+ "namespace": "experimental.omnibox",
+ "types": [],
+ "functions": [
+ {
+ "name": "sendSuggestions",
+ "nodoc": true,
+ "type": "function",
+ "description": "",
+ "parameters": [
+ {"type": "integer", "name": "requestId"},
+ {
+ "type": "array",
+ "description": "Array of suggest results",
+ "items": {
+ "type": "object",
+ "properties": {
+ "content": {"type": "string"},
+ "description": {"type": "string"}
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "onInputChanged",
+ "type": "function",
+ "description": "User has changed what is typed into the omnibox.",
+ "parameters": [
+ {
+ "type": "string",
+ "name": "text"
+ },
+ {
+ "type": "function",
+ "name": "suggest",
+ "parameters": [
+ {
+ "type": "array",
+ "description": "Array of suggest results",
+ "items": {
+ "type": "object",
+ "properties": {
+ "content": {"type": "string"},
+ "description": {"type": "string"}
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "onInputEntered",
+ "type": "function",
+ "description": "User has accepted what is typed into the omnibox.",
+ "parameters": [
+ {
+ "type": "string",
+ "name": "text"
+ }
+ ]
+ }
+ ]
}
]
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/examples/api/omnibox/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698