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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 3353015: Implement gallery install API (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: erik comments Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 3987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 }, 3998 },
3999 { 3999 {
4000 "name": "callback", 4000 "name": "callback",
4001 "type": "function", 4001 "type": "function",
4002 "optional": "true", 4002 "optional": "true",
4003 "parameters": [] 4003 "parameters": []
4004 } 4004 }
4005 ] 4005 ]
4006 }, 4006 },
4007 { 4007 {
4008 "name": "install",
4009 "description": "(FOR INTERNAL USE ONLY)",
4010 "nodoc": true,
4011 "parameters": [
4012 {
4013 "name": "expected_id",
4014 "type": "string",
4015 "description": "The id we expect the crx at |url| to have."
4016 },
4017 {
4018 "name": "url",
4019 "type": "string",
4020 "description": "The url to fetch the crx from."
4021 },
4022 {
4023 "name": "callback",
4024 "type": "function",
4025 "optional": "true",
4026 "parameters": []
4027 }
4028 ]
4029 },
4030 {
4031 "name": "uninstall", 4008 "name": "uninstall",
4032 "description": "Uninstall a currently installed app or extension.", 4009 "description": "Uninstall a currently installed app or extension.",
4033 "parameters": [ 4010 "parameters": [
4034 { 4011 {
4035 "name": "id", 4012 "name": "id",
4036 "type": "string", 4013 "type": "string",
4037 "description": "This should be the id from an item of $ref:Extension Info." 4014 "description": "This should be the id from an item of $ref:Extension Info."
4038 }, 4015 },
4039 { 4016 {
4040 "name": "callback", 4017 "name": "callback",
(...skipping 30 matching lines...) Expand all
4071 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 4048 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
4072 } 4049 }
4073 ] 4050 ]
4074 }, 4051 },
4075 4052
4076 { 4053 {
4077 "namespace":"webstorePrivate", 4054 "namespace":"webstorePrivate",
4078 "nodoc": "true", 4055 "nodoc": "true",
4079 "functions": [ 4056 "functions": [
4080 { 4057 {
4058 "name": "install",
4059 "description": "Installs the extension corresponding to the given id",
4060 "parameters": [
4061 {
4062 "name": "expected_id",
4063 "type": "string",
4064 "description": "The id of the extension to install."
4065 },
4066 {
4067 "name": "callback",
4068 "type": "function",
4069 "optional": "true",
4070 "parameters": []
4071 }
4072 ]
4073 },
4074 {
4081 "name": "getSyncLogin", 4075 "name": "getSyncLogin",
4082 "description": "Returns the logged-in sync user login if there is one, o r the empty string otherwise.", 4076 "description": "Returns the logged-in sync user login if there is one, o r the empty string otherwise.",
4083 "parameters": [ 4077 "parameters": [
4084 { 4078 {
4085 "name": "callback", 4079 "name": "callback",
4086 "type": "function", 4080 "type": "function",
4087 "optional": "false", 4081 "optional": "false",
4088 "parameters": [ 4082 "parameters": [
4089 { "name": "login", "type": "string" } 4083 { "name": "login", "type": "string" }
4090 ] 4084 ]
(...skipping 18 matching lines...) Expand all
4109 "name": "setStoreLogin", 4103 "name": "setStoreLogin",
4110 "description": "Set a preference value with the store login.", 4104 "description": "Set a preference value with the store login.",
4111 "parameters": [ 4105 "parameters": [
4112 { "name": "login", "type": "string" }, 4106 { "name": "login", "type": "string" },
4113 { "name": "callback", "type": "function", "optional": "true" } 4107 { "name": "callback", "type": "function", "optional": "true" }
4114 ] 4108 ]
4115 } 4109 }
4116 ] 4110 ]
4117 } 4111 }
4118 ] 4112 ]
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698