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

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

Issue 16470003: Add chrome.runtime.getPackageDirectoryEntry. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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": "runtime", 7 "namespace": "runtime",
8 "documentation_permissions_required": ["runtime"], 8 "documentation_permissions_required": ["runtime"],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 "nacl_arch" : { 284 "nacl_arch" : {
285 "description": "The native client architecture. This may be different from arch on some platforms.", 285 "description": "The native client architecture. This may be different from arch on some platforms.",
286 "type": "string", 286 "type": "string",
287 "enum": ["arm", "x86-32", "x86-64"] 287 "enum": ["arm", "x86-32", "x86-64"]
288 } 288 }
289 } 289 }
290 } 290 }
291 ] 291 ]
292 } 292 }
293 ] 293 ]
294 },
295 {
296 "name": "getPackageDirectoryEntry",
297 "type": "function",
298 "description": "Returns a DirectoryEntry for the package directory.",
299 "parameters": [
300 {
301 "type": "function",
302 "name": "callback",
303 "parameters": [
304 {
305 "name": "directoryEntry",
306 "type": "object",
307 "additionalProperties": { "type": "any" },
308 "isInstanceOf": "DirectoryEntry"
309 }
310 ]
311 }
312 ]
294 } 313 }
295 ], 314 ],
296 "events": [ 315 "events": [
297 { 316 {
298 "name": "onStartup", 317 "name": "onStartup",
299 "type": "function", 318 "type": "function",
300 "description": "Fired when a profile that has this extension installed f irst starts up. This event is not fired when an incognito profile is started, ev en if this extension is operating in 'split' incognito mode." 319 "description": "Fired when a profile that has this extension installed f irst starts up. This event is not fired when an incognito profile is started, ev en if this extension is operating in 'split' incognito mode."
301 }, 320 },
302 { 321 {
303 "name": "onInstalled", 322 "name": "onInstalled",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 "optional": "true", 427 "optional": "true",
409 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns." 428 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns."
410 } 429 }
411 } 430 }
412 431
413 432
414 433
415 ] 434 ]
416 } 435 }
417 ] 436 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698