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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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":"webstorePrivate", 7 "namespace":"webstorePrivate",
8 "description": "none", 8 "description": "none",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 "name": "icon_error", 59 "name": "icon_error",
60 "description": "Failed to retrieve the extension's icon from the Web S tore, or the icon was invalid" 60 "description": "Failed to retrieve the extension's icon from the Web S tore, or the icon was invalid"
61 }, { 61 }, {
62 "name": "invalid_icon_url", 62 "name": "invalid_icon_url",
63 "description": "An invalid icon URL was provided" 63 "description": "An invalid icon URL was provided"
64 }, { 64 }, {
65 "name": "already_installed", 65 "name": "already_installed",
66 "description": "The extension is already installed" 66 "description": "The extension is already installed"
67 }], 67 }],
68 "description": "Whether the API call succeeded, or the reason for failur e." 68 "description": "Whether the API call succeeded, or the reason for failur e."
69 },
70 {
71 "id": "WebGlStatus",
72 "type": "string",
73 "enum": ["webgl_allowed", "webgl_blocked"]
69 } 74 }
70 ], 75 ],
71 "functions": [ 76 "functions": [
72 { 77 {
73 "name": "install", 78 "name": "install",
74 "nocompile": true, 79 "nocompile": true,
75 "description": "Installs the extension corresponding to the given id", 80 "description": "Installs the extension corresponding to the given id",
76 "parameters": [ 81 "parameters": [
77 { 82 {
78 "name": "expected_id", 83 "name": "expected_id",
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 "name": "getWebGLStatus", 300 "name": "getWebGLStatus",
296 "description": "Invokes a callback that returns whether WebGL is blackli sted or not.", 301 "description": "Invokes a callback that returns whether WebGL is blackli sted or not.",
297 "parameters": [ 302 "parameters": [
298 { 303 {
299 "name": "callback", 304 "name": "callback",
300 "type": "function", 305 "type": "function",
301 "optional": false, 306 "optional": false,
302 "parameters": [ 307 "parameters": [
303 { 308 {
304 "name": "webgl_status", 309 "name": "webgl_status",
305 "type": "string", 310 "$ref": "WebGlStatus"
306 "enum": ["webgl_allowed", "webgl_blocked"]
307 } 311 }
308 ] 312 ]
309 } 313 }
310 ] 314 ]
311 }, 315 },
312 { 316 {
313 "name": "getIsLauncherEnabled", 317 "name": "getIsLauncherEnabled",
314 "description": "Returns whether the apps launcher is enabled or not.", 318 "description": "Returns whether the apps launcher is enabled or not.",
315 "parameters": [ 319 "parameters": [
316 { 320 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 "$ref": "Result", 374 "$ref": "Result",
371 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure." 375 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure."
372 } 376 }
373 ] 377 ]
374 } 378 }
375 ] 379 ]
376 } 380 }
377 ] 381 ]
378 } 382 }
379 ] 383 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698