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

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

Issue 508263003: Add getSelf method to management API to use without the "management" permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 [ 5 [
6 { 6 {
7 "namespace":"management", 7 "namespace":"management",
8 "description": "The <code>chrome.management</code> API provides ways to mana ge the list of extensions/apps that are installed and running. It is particularl y useful for extensions that <a href='override'>override</a> the built-in New Ta b page.", 8 "description": "The <code>chrome.management</code> API provides ways to mana ge the list of extensions/apps that are installed and running. It is particularl y useful for extensions that <a href='override'>override</a> the built-in New Ta b page.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 "parameters": [ 174 "parameters": [
175 { 175 {
176 "name": "result", 176 "name": "result",
177 "$ref": "ExtensionInfo" 177 "$ref": "ExtensionInfo"
178 } 178 }
179 ] 179 ]
180 } 180 }
181 ] 181 ]
182 }, 182 },
183 { 183 {
184 "name": "getSelf",
185 "description": "Returns information about the calling extension, app, or theme. Note: This function can be used without requesting the 'management' perm ission in the manifest.",
186 "parameters": [
187 {
188 "type": "function",
189 "name": "callback",
190 "optional": true,
191 "parameters": [
192 {
193 "name": "result",
194 "$ref": "ExtensionInfo"
195 }
196 ]
197 }
198 ]
199 },
200 {
184 "name": "getPermissionWarningsById", 201 "name": "getPermissionWarningsById",
185 "description": "Returns a list of <a href='permission_warnings'>permissi on warnings</a> for the given extension id.", 202 "description": "Returns a list of <a href='permission_warnings'>permissi on warnings</a> for the given extension id.",
186 "parameters": [ 203 "parameters": [
187 { "name": "id", 204 { "name": "id",
188 "type": "string", 205 "type": "string",
189 "description": "The ID of an already installed extension." 206 "description": "The ID of an already installed extension."
190 }, 207 },
191 { 208 {
192 "name": "callback", 209 "name": "callback",
193 "type": "function", 210 "type": "function",
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 }, 428 },
412 { 429 {
413 "name": "onDisabled", 430 "name": "onDisabled",
414 "description": "Fired when an app or extension has been disabled.", 431 "description": "Fired when an app or extension has been disabled.",
415 "type": "function", 432 "type": "function",
416 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 433 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
417 } 434 }
418 ] 435 ]
419 } 436 }
420 ] 437 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | chrome/common/extensions/docs/templates/intros/management.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698