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

Unified Diff: chrome/common/extensions/api/terminal_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/terminal_private.json
diff --git a/chrome/common/extensions/api/terminal_private.json b/chrome/common/extensions/api/terminal_private.json
index 424db327aa673d1d657e47a748aaafaad94157f1..452aab13e0b4eca034e959a9e40754a60f2286af 100644
--- a/chrome/common/extensions/api/terminal_private.json
+++ b/chrome/common/extensions/api/terminal_private.json
@@ -9,6 +9,14 @@
"implemented_in": "chrome/browser/extensions/api/terminal/terminal_private_api.h"
},
"description": "none",
+ "types": [
+ {
+ "id": "OutputType",
+ "type": "string",
+ "enum": ["stdout", "stderr", "exit"],
+ "description": "Type of the output stream from which output came. When process exits, output type will be set to exit"
+ }
+ ],
"functions": [
{
"name": "openTerminalProcess",
@@ -136,9 +144,8 @@
},
{
"name": "type",
- "type": "string",
- "description": "Type of the output stream from which output came. When process exits, output type will be set to exit",
- "enum": ["stdout", "stderr", "exit"]
+ "$ref": "OutputType",
+ "description": "Type of the output stream from which output came. When process exits, output type will be set to exit"
},
{
"name": "text",
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698