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

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: 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
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 "name": "getWebGLStatus", 364 "name": "getWebGLStatus",
360 "description": "Invokes a callback that returns whether WebGL is blackli sted or not.", 365 "description": "Invokes a callback that returns whether WebGL is blackli sted or not.",
361 "parameters": [ 366 "parameters": [
362 { 367 {
363 "name": "callback", 368 "name": "callback",
364 "type": "function", 369 "type": "function",
365 "optional": false, 370 "optional": false,
366 "parameters": [ 371 "parameters": [
367 { 372 {
368 "name": "webgl_status", 373 "name": "webgl_status",
369 "type": "string", 374 "$ref": "WebGlStatus"
370 "enum": ["webgl_allowed", "webgl_blocked"]
371 } 375 }
372 ] 376 ]
373 } 377 }
374 ] 378 ]
375 }, 379 },
376 { 380 {
377 "name": "getIsLauncherEnabled", 381 "name": "getIsLauncherEnabled",
378 "description": "Returns whether the apps launcher is enabled or not.", 382 "description": "Returns whether the apps launcher is enabled or not.",
379 "parameters": [ 383 "parameters": [
380 { 384 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 "$ref": "Result", 438 "$ref": "Result",
435 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure." 439 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure."
436 } 440 }
437 ] 441 ]
438 } 442 }
439 ] 443 ]
440 } 444 }
441 ] 445 ]
442 } 446 }
443 ] 447 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/web_navigation.json ('k') | chrome/common/extensions/api/windows.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698