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

Side by Side Diff: chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py

Issue 354073004: Docserver: Add template support for object level availability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import json 5 import json
6 6
7 from extensions_paths import CHROME_EXTENSIONS 7 from extensions_paths import CHROME_EXTENSIONS
8 from test_file_system import MoveAllTo 8 from test_file_system import MoveAllTo
9 9
10 10
11 TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { 11 TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
12 'trunk': { 12 'trunk': {
13 'docs': { 13 'docs': {
14 'templates': { 14 'templates': {
15 'json': { 15 'json': {
16 'api_availabilities.json': '{}' 16 'api_availabilities.json': '{}',
17 'intro_tables.json': '{}'
17 } 18 }
18 } 19 }
19 }, 20 },
20 'api': { 21 'api': {
21 '_api_features.json': '{}', 22 '_api_features.json': '{}',
22 '_manifest_features.json': '{}', 23 '_manifest_features.json': '{}',
23 '_permission_features.json': '{}', 24 '_permission_features.json': '{}',
24 'tabs.json': json.dumps([{ 25 'tabs.json': json.dumps([{
25 'namespace': 'tabs', 26 'namespace': 'tabs',
26 'types': [ 27 'types': [
27 { 28 {
28 'id': 'Tab', 29 'id': 'Tab',
30 'type': 'any',
ahernandez 2014/06/26 23:53:32 I added a bunch of these 'type' keys so json_schem
29 'properties': { 31 'properties': {
30 'url': {}, 32 'url': {
31 'index': {}, 33 'type': 'any'
32 'selected': {}, 34 },
33 'id': {}, 35 'index': {
34 'windowId': {} 36 'type': 'any'
37 },
38 'selected': {
39 'type': 'any'
40 },
41 'id': {
42 'type': 'any'
43 },
44 'windowId': {
45 'type': 'any'
46 }
35 } 47 }
36 }, 48 },
37 { 49 {
38 'id': 'InjectDetails', 50 'id': 'InjectDetails',
51 'type': 'any',
39 'properties': { 52 'properties': {
40 'allFrames': {}, 53 'allFrames': {
41 'code': {}, 54 'type': 'any'
42 'file': {} 55 },
56 'code': {
57 'type': 'any'
58 },
59 'file': {
60 'type':'any'
61 }
43 } 62 }
44 } 63 }
45 ], 64 ],
46 'properties': { 65 'properties': {
47 'fakeTabsProperty1': {}, 66 'fakeTabsProperty1': {
48 'fakeTabsProperty2': {}, 67 'type': 'any'
49 'fakeTabsProperty3': {} 68 },
69 'fakeTabsProperty2': {
70 'type': 'any'
71 },
72 'fakeTabsProperty3': {
73 'type': 'any'
74 }
50 }, 75 },
51 'functions': [ 76 'functions': [
52 { 77 {
53 'name': 'getCurrent', 78 'name': 'getCurrent',
54 'parameters': [ 79 'parameters': [
55 { 80 {
56 'name': 'callback', 81 'name': 'callback',
82 'type': 'function',
57 'parameters': [ 83 'parameters': [
58 { 84 {
59 'name': 'tab' 85 'name': 'tab',
86 'type': 'any'
60 } 87 }
61 ] 88 ]
62 } 89 }
63 ] 90 ]
64 }, 91 },
65 { 92 {
66 'name': 'get', 93 'name': 'get',
67 'parameters': [ 94 'parameters': [
68 { 95 {
69 'name': 'callback', 96 'name': 'callback',
97 'type': 'function',
70 'parameters': [ 98 'parameters': [
71 { 99 {
72 'name': 'tab' 100 'name': 'tab',
101 'type': 'any'
73 } 102 }
74 ] 103 ]
75 }, 104 },
76 { 105 {
77 'name': 'tabId' 106 'name': 'tabId',
107 'type': 'any'
78 } 108 }
79 ] 109 ]
80 } 110 }
81 ], 111 ],
82 'events': [ 112 'events': [
83 { 113 {
84 'name': 'onActivated', 114 'name': 'onActivated',
115 'type': 'event',
85 'parameters': [ 116 'parameters': [
86 { 117 {
87 'name': 'activeInfo', 118 'name': 'activeInfo',
119 'type': 'any',
88 'properties': { 120 'properties': {
89 'tabId': {}, 121 'tabId': {
90 'windowId': {} 122 'type': 'any'
123 },
124 'windowId': {
125 'type': 'any'
126 }
91 } 127 }
92 } 128 }
93 ] 129 ]
94 }, 130 },
95 { 131 {
96 'name': 'onUpdated', 132 'name': 'onUpdated',
133 'type': 'event',
97 'parameters': [ 134 'parameters': [
98 { 135 {
99 'name': 'tabId' 136 'name': 'tabId',
137 'type': 'any'
100 }, 138 },
101 { 139 {
102 'name': 'tab' 140 'name': 'tab',
141 'type': 'any'
103 }, 142 },
104 { 143 {
105 'name': 'changeInfo', 144 'name': 'changeInfo',
145 'type': 'any',
106 'properties': { 146 'properties': {
107 'pinned': {}, 147 'pinned': {
108 'status': {} 148 'type': 'any'
149 },
150 'status': {
151 'type': 'any'
152 }
109 } 153 }
110 } 154 }
111 ] 155 ]
112 } 156 }
113 ] 157 ]
114 }]) 158 }])
115 } 159 }
116 }, 160 },
117 '1500': { 161 '1500': {
118 'api': { 162 'api': {
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 ] 1153 ]
1110 }]) 1154 }])
1111 } 1155 }
1112 }, 1156 },
1113 '782': { 1157 '782': {
1114 'api': { 1158 'api': {
1115 'extension_api.json': "{}" 1159 'extension_api.json': "{}"
1116 } 1160 }
1117 } 1161 }
1118 }) 1162 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698