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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 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 | « extensions/common/api/idle.json ('k') | extensions/common/api/runtime.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
11 "id": "IconInfo", 11 "id": "IconInfo",
12 "description": "Information about an icon belonging to an extension, app , or theme.", 12 "description": "Information about an icon belonging to an extension, app , or theme.",
13 "type": "object", 13 "type": "object",
14 "properties": { 14 "properties": {
15 "size": { "type": "integer", "description": "A number representing the width and height of the icon. Likely values include (but are not limited to) 12 8, 48, 24, and 16." }, 15 "size": { "type": "integer", "description": "A number representing the width and height of the icon. Likely values include (but are not limited to) 12 8, 48, 24, and 16." },
16 "url": { "type": "string", "description": "The URL for this icon image . To display a grayscale version of the icon (to indicate that an extension is d isabled, for example), append <code>?grayscale=true</code> to the URL." } 16 "url": { "type": "string", "description": "The URL for this icon image . To display a grayscale version of the icon (to indicate that an extension is d isabled, for example), append <code>?grayscale=true</code> to the URL." }
17 } 17 }
18 }, 18 },
19 { 19 {
20 "id": "LaunchType", 20 "id": "LaunchType",
21 "type": "string", 21 "type": "string",
22 "enum": ["OPEN_AS_REGULAR_TAB", "OPEN_AS_PINNED_TAB", "OPEN_AS_WINDOW", "OPEN_FULL_SCREEN"], 22 "enum": ["OPEN_AS_REGULAR_TAB", "OPEN_AS_PINNED_TAB", "OPEN_AS_WINDOW", "OPEN_FULL_SCREEN"],
23 "description": "These are all possible app launch types." 23 "description": "These are all possible app launch types."
24 }, 24 },
25 { 25 {
26 "id": "ExtensionDisabledReason",
27 "description": "A reason the item is disabled.",
28 "type": "string",
29 "enum": ["unknown", "permissions_increase"]
30 },
31 {
32 "id": "ExtensionType",
33 "description": "The type of this extension, app, or theme.",
34 "type": "string",
35 "enum": ["extension", "hosted_app", "packaged_app", "legacy_packaged_app ", "theme"]
36 },
37 {
38 "id": "ExtensionInstallType",
39 "description": "How the extension was installed. One of<br><var>admin</v ar>: The extension was installed because of an administrative policy,<br><var>de velopment</var>: The extension was loaded unpacked in developer mode,<br><var>no rmal</var>: The extension was installed normally via a .crx file,<br><var>sidelo ad</var>: The extension was installed by other software on the machine,<br><var> other</var>: The extension was installed by other means.",
40 "type": "string",
41 "enum": ["admin", "development", "normal", "sideload", "other"]
42 },
43 {
26 "id": "ExtensionInfo", 44 "id": "ExtensionInfo",
27 "description": "Information about an installed extension, app, or theme. ", 45 "description": "Information about an installed extension, app, or theme. ",
28 "type": "object", 46 "type": "object",
29 "properties": { 47 "properties": {
30 "id": { 48 "id": {
31 "description": "The extension's unique identifier.", 49 "description": "The extension's unique identifier.",
32 "type": "string" 50 "type": "string"
33 }, 51 },
34 "name": { 52 "name": {
35 "description": "The name of this extension, app, or theme.", 53 "description": "The name of this extension, app, or theme.",
(...skipping 14 matching lines...) Expand all
50 "mayDisable": { 68 "mayDisable": {
51 "description": "Whether this extension can be disabled or uninstalle d by the user.", 69 "description": "Whether this extension can be disabled or uninstalle d by the user.",
52 "type": "boolean" 70 "type": "boolean"
53 }, 71 },
54 "enabled": { 72 "enabled": {
55 "description": "Whether it is currently enabled or disabled.", 73 "description": "Whether it is currently enabled or disabled.",
56 "type": "boolean" 74 "type": "boolean"
57 }, 75 },
58 "disabledReason": { 76 "disabledReason": {
59 "description": "A reason the item is disabled.", 77 "description": "A reason the item is disabled.",
60 "type": "string", 78 "$ref": "ExtensionDisabledReason",
61 "enum": ["unknown", "permissions_increase"],
62 "optional": true 79 "optional": true
63 }, 80 },
64 "isApp": { 81 "isApp": {
65 "description": "True if this is an app.", 82 "description": "True if this is an app.",
66 "type": "boolean", 83 "type": "boolean",
67 "deprecated": "Please use $(ref:management.ExtensionInfo.type)." 84 "deprecated": "Please use $(ref:management.ExtensionInfo.type)."
68 }, 85 },
69 "type": { 86 "type": {
70 "description": "The type of this extension, app, or theme.", 87 "description": "The type of this extension, app, or theme.",
71 "type": "string", 88 "$ref": "ExtensionType"
72 "enum": ["extension", "hosted_app", "packaged_app", "legacy_packaged _app", "theme"]
73 }, 89 },
74 "appLaunchUrl": { 90 "appLaunchUrl": {
75 "description": "The launch url (only present for apps).", 91 "description": "The launch url (only present for apps).",
76 "type": "string", 92 "type": "string",
77 "optional": true 93 "optional": true
78 }, 94 },
79 "homepageUrl": { 95 "homepageUrl": {
80 "description": "The URL of the homepage of this extension, app, or t heme.", 96 "description": "The URL of the homepage of this extension, app, or t heme.",
81 "type": "string", 97 "type": "string",
82 "optional": true 98 "optional": true
(...skipping 27 matching lines...) Expand all
110 } 126 }
111 }, 127 },
112 "hostPermissions": { 128 "hostPermissions": {
113 "description": "Returns a list of host based permissions.", 129 "description": "Returns a list of host based permissions.",
114 "type": "array", 130 "type": "array",
115 "items" : { 131 "items" : {
116 "type": "string" 132 "type": "string"
117 } 133 }
118 }, 134 },
119 "installType": { 135 "installType": {
120 "description": "How the extension was installed. One of<br><var>admi n</var>: The extension was installed because of an administrative policy,<br><va r>development</var>: The extension was loaded unpacked in developer mode,<br><va r>normal</var>: The extension was installed normally via a .crx file,<br><var>si deload</var>: The extension was installed by other software on the machine,<br>< var>other</var>: The extension was installed by other means.", 136 "description": "How the extension was installed.",
121 "type": "string", 137 "$ref": "ExtensionInstallType"
122 "enum": ["admin", "development", "normal", "sideload", "other"]
123 }, 138 },
124 "launchType": { 139 "launchType": {
125 "description": "The app launch type (only present for apps).", 140 "description": "The app launch type (only present for apps).",
126 "$ref": "LaunchType", 141 "$ref": "LaunchType",
127 "optional": true 142 "optional": true
128 }, 143 },
129 "availableLaunchTypes": { 144 "availableLaunchTypes": {
130 "description": "The currently available launch types (only present f or apps).", 145 "description": "The currently available launch types (only present f or apps).",
131 "type": "array", 146 "type": "array",
132 "optional": true, 147 "optional": true,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 }, 443 },
429 { 444 {
430 "name": "onDisabled", 445 "name": "onDisabled",
431 "description": "Fired when an app or extension has been disabled.", 446 "description": "Fired when an app or extension has been disabled.",
432 "type": "function", 447 "type": "function",
433 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 448 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
434 } 449 }
435 ] 450 ]
436 } 451 }
437 ] 452 ]
OLDNEW
« no previous file with comments | « extensions/common/api/idle.json ('k') | extensions/common/api/runtime.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698