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

Side by Side Diff: chrome/common/web_app_schema.json

Issue 4979003: Implement web app definition parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nacl64 build Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/web_apps.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file contains the schema for web app defintion files.
6
7 {
8 "type": "object",
9 "properties": {
10 // TODO(aa): Need to figure out what max length the store is using for name
11 // and description.
12 "name": {
13 "type": "string",
14 "minLength": 1,
15 "maxLength": 45
16 },
17 "description": {
18 "type": "string",
19 "maxLength": 132,
20 "optional": true
21 },
22 "launch_url": {
23 "type": "string",
24 "minLength": 1
25 },
26 "launch_container": {
27 "enum": ["tab", "panel"],
28 "optional": true
29 },
30 // TODO(aa): We had problems with a simple array of strings in extensions.
31 // Consider something else.
32 "permissions": {
33 "type": "array",
34 "optional": true,
35 "items": {
36 "type": "string",
37 "minLength": 1
38 }
39 },
40 "urls": {
41 "type": "array",
42 "optional": true,
43 "items": {
44 "type": "string"
Erik does not do reviews 2010/11/16 23:43:02 minLength: 1 here too?
45 }
46 },
47 "icons": {
48 "type": "object",
49 "optional": true,
50 "properties": {
51 "16": { "optional": true, "type": "string", "minLength": 1 },
52 "48": { "optional": true, "type": "string", "minLength": 1 },
53 "128": { "optional": true, "type": "string", "minLength": 1 }
54 }
55 }
56 }
57 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/web_apps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698