OLD | NEW |
---|---|
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 # This file is used to assign starting resource ids for resources and strings | 5 # This file is used to assign starting resource ids for resources and strings |
6 # used by Chromium. This is done to ensure that resource ids are unique | 6 # used by Chromium. This is done to ensure that resource ids are unique |
7 # across all the grd files. If you are adding a new grd file, please add | 7 # across all the grd files. If you are adding a new grd file, please add |
8 # a new entry to this file. | 8 # a new entry to this file. |
9 # | 9 # |
10 # The first entry in the file, SRCDIR, is special: It is a relative path from | 10 # The entries below are organized into sections. When adding new entries, |
11 # this file to the base of your checkout. | 11 # please use the right section. Try to keep entries in alphabetical order. |
12 # | |
13 # - chrome/app/ | |
14 # - chrome/browser/ | |
15 # - chrome/ miscellaneous | |
16 # - components/ | |
17 # - content/ | |
18 # - ios/ (overlaps with content/) | |
sdefresne
2016/10/20 14:59:55
This separation is a bit problematic for iOS. It w
Lei Zhang
2016/10/20 20:53:56
Right, so I haven't worked downstream in a while a
| |
19 # - everything else | |
12 # | 20 # |
13 # The range of ID values, which is used by pak files, is from 0 to 2^16 - 1. | 21 # The range of ID values, which is used by pak files, is from 0 to 2^16 - 1. |
14 { | 22 { |
23 # The first entry in the file, SRCDIR, is special: It is a relative path from | |
24 # this file to the base of your checkout. | |
15 "SRCDIR": "../..", | 25 "SRCDIR": "../..", |
16 | 26 |
17 "chrome/browser/browser_resources.grd": { | 27 # Previous versions of this file started with resource id 400, so stick with |
18 "includes": [400], | 28 # that. |
19 "structures": [850], | 29 # |
20 }, | 30 # START chrome/app section. |
21 "chrome/browser/resources/component_extension_resources.grd": { | 31 "chrome/app/address_input_strings.grd": { |
22 "includes": [1000], | 32 "messages": [400], |
23 "structures": [1450], | 33 }, |
24 }, | 34 |
25 "chrome/browser/resources/net_internals_resources.grd": { | |
26 "includes": [1500], | |
27 }, | |
28 "ui/webui/resources/webui_resources.grd": { | |
29 "includes": [2000], | |
30 "structures": [2200], | |
31 }, | |
32 "chrome/common/common_resources.grd": { | |
33 "includes": [3000], | |
34 }, | |
35 "chrome/renderer/resources/renderer_resources.grd": { | |
36 "includes": [3500], | |
37 "structures": [3700], | |
38 }, | |
39 "net/base/net_resources.grd": { | |
40 "includes": [4000], | |
41 }, | |
42 "ui/resources/ui_unscaled_resources.grd": { | |
43 "includes": [4500], | |
44 }, | |
45 "content/app/resources/content_resources.grd": { | |
46 "structures": [4700], | |
47 }, | |
48 "third_party/WebKit/public/blink_image_resources.grd": { | |
49 "structures": [4750], | |
50 }, | |
51 "ui/resources/ui_resources.grd": { | |
52 "structures": [5500], | |
53 }, | |
54 "ui/app_list/resources/app_list_resources.grd": { | |
55 "structures": [5760], | |
56 }, | |
57 "ui/views/resources/views_resources.grd": { | |
58 "structures": [5800], | |
59 }, | |
60 "ash/resources/ash_resources.grd": { | |
61 "includes": [6100], | |
62 "structures": [6150], | |
63 }, | |
64 "ui/keyboard/keyboard_resources.grd": { | |
65 "includes": [6850], | |
66 }, | |
67 "chrome/app/theme/theme_resources.grd": { | |
68 "structures": [7000], | |
69 }, | |
70 "chrome/app/theme/chrome_unscaled_resources.grd": { | |
71 "includes": [8000], | |
72 }, | |
73 "ui/strings/app_locale_settings.grd": { | |
74 "messages": [9000], | |
75 }, | |
76 "chrome/app/resources/locale_settings.grd": { | |
77 "messages": [9500], | |
78 }, | |
79 # These each start with the same resource id because we only use one | |
80 # file for each build (chromiumos, google_chromeos, linux, mac, or win). | |
81 "chrome/app/resources/locale_settings_chromiumos.grd": { | |
82 "messages": [10500], | |
83 }, | |
84 "chrome/app/resources/locale_settings_google_chromeos.grd": { | |
85 "messages": [10500], | |
86 }, | |
87 "chrome/app/resources/locale_settings_linux.grd": { | |
88 "messages": [10500], | |
89 }, | |
90 "chrome/app/resources/locale_settings_mac.grd": { | |
91 "messages": [10500], | |
92 }, | |
93 "chrome/app/resources/locale_settings_win.grd": { | |
94 "messages": [10500], | |
95 }, | |
96 "ui/strings/ui_strings.grd": { | |
97 "messages": [11000], | |
98 }, | |
99 # Chromium strings and Google Chrome strings must start at the same id. | 35 # Chromium strings and Google Chrome strings must start at the same id. |
100 # We only use one file depending on whether we're building Chromium or | 36 # We only use one file depending on whether we're building Chromium or |
101 # Google Chrome. | 37 # Google Chrome. |
102 "chrome/app/chromium_strings.grd": { | 38 "chrome/app/chromium_strings.grd": { |
103 "messages": [11200], | 39 "messages": [500], |
104 }, | 40 }, |
105 "chrome/app/google_chrome_strings.grd": { | 41 "chrome/app/google_chrome_strings.grd": { |
106 "messages": [11200], | 42 "messages": [500], |
107 }, | 43 }, |
44 | |
108 # Leave lots of space for generated_resources since it has most of our | 45 # Leave lots of space for generated_resources since it has most of our |
109 # strings. | 46 # strings. |
110 "chrome/app/generated_resources.grd": { | 47 "chrome/app/generated_resources.grd": { |
111 "structures": [11700], | 48 "messages": [900], |
112 "messages": [12200], | 49 }, |
50 | |
51 "chrome/app/resources/locale_settings.grd": { | |
52 "messages": [10000], | |
53 }, | |
54 | |
55 # These each start with the same resource id because we only use one | |
56 # file for each build (chromiumos, google_chromeos, linux, mac, or win). | |
57 "chrome/app/resources/locale_settings_chromiumos.grd": { | |
58 "messages": [10100], | |
59 }, | |
60 "chrome/app/resources/locale_settings_google_chromeos.grd": { | |
61 "messages": [10100], | |
62 }, | |
63 "chrome/app/resources/locale_settings_linux.grd": { | |
64 "messages": [10100], | |
65 }, | |
66 "chrome/app/resources/locale_settings_mac.grd": { | |
67 "messages": [10100], | |
68 }, | |
69 "chrome/app/resources/locale_settings_win.grd": { | |
70 "messages": [10100], | |
71 }, | |
72 | |
73 "chrome/app/theme/chrome_unscaled_resources.grd": { | |
74 "includes": [10150], | |
75 }, | |
76 | |
77 # Leave space for theme_resources since it has many structures. | |
78 "chrome/app/theme/theme_resources.grd": { | |
79 "structures": [10200], | |
80 }, | |
81 # END chrome/app section. | |
82 | |
83 # START chrome/browser section. | |
84 "chrome/browser/browser_resources.grd": { | |
85 "includes": [11000], | |
86 "structures": [11450], | |
87 }, | |
88 "chrome/browser/resources/component_extension_resources.grd": { | |
89 "includes": [11550], | |
90 "structures": [11800], | |
91 }, | |
92 "chrome/browser/resources/invalidations_resources.grd": { | |
93 "includes": [11850], | |
94 }, | |
95 "chrome/browser/resources/md_policy/policy_resources.grd": { | |
96 "structures": [11860], | |
97 }, | |
98 "chrome/browser/resources/net_internals_resources.grd": { | |
99 "includes": [11900], | |
100 }, | |
101 "chrome/browser/resources/options_resources.grd": { | |
102 "includes": [11910], | |
103 "structures": [11920], | |
104 }, | |
105 "chrome/browser/resources/options_test_resources.grd": { | |
106 "structures": [11950], | |
107 }, | |
108 "chrome/browser/resources/password_manager_internals_resources.grd": { | |
109 "includes": [11960], | |
110 }, | |
111 "chrome/browser/resources/quota_internals_resources.grd": { | |
112 "includes": [11970], | |
113 }, | |
114 "chrome/browser/resources/settings/settings_resources.grd": { | |
115 "structures": [12000], | |
116 }, | |
117 "chrome/browser/resources/sync_file_system_internals_resources.grd": { | |
118 "includes": [12500], | |
119 }, | |
120 "chrome/browser/resources/task_scheduler_internals/resources.grd": { | |
121 "includes": [12530], | |
122 }, | |
123 "chrome/browser/resources/translate_internals_resources.grd": { | |
124 "includes": [12540], | |
125 }, | |
126 # END chrome/browser section. | |
127 | |
128 # START chrome/ miscellaneous section. | |
129 "chrome/common/common_resources.grd": { | |
130 "includes": [12700], | |
131 }, | |
132 "chrome/renderer/resources/renderer_resources.grd": { | |
133 "includes": [12710], | |
134 "structures": [12790], | |
135 }, | |
136 "chrome/test/data/webui_test_resources.grd": { | |
137 "includes": [12800], | |
138 }, | |
139 # END chrome/ miscellaneous section. | |
140 | |
141 # START components/ section. | |
142 # | |
143 # Chromium strings and Google Chrome strings must start at the same id. | |
144 # We only use one file depending on whether we're building Chromium or | |
145 # Google Chrome. | |
146 "components/components_chromium_strings.grd": { | |
147 "messages": [15000], | |
148 }, | |
149 "components/components_google_chrome_strings.grd": { | |
150 "messages": [15000], | |
151 }, | |
152 | |
153 "components/components_locale_settings.grd": { | |
154 "includes": [15020], | |
155 "messages": [15030], | |
156 }, | |
157 "components/components_strings.grd": { | |
158 "messages": [15040], | |
159 }, | |
160 "components/chrome_apps/chrome_apps_resources.grd": { | |
161 "includes": [15900], | |
162 }, | |
163 "components/policy/resources/policy_templates.grd": { | |
164 "structures": [15920], | |
165 }, | |
166 "components/resources/components_resources.grd": { | |
167 "includes": [15930], | |
168 }, | |
169 "components/resources/components_scaled_resources.grd": { | |
170 "structures": [16050], | |
171 }, | |
172 # END components/ section. | |
173 | |
174 # START content/ section. | |
175 # content/ and ios/ must start at the same id. | |
176 # App only use one file depending on whether it is iOS or other platform. | |
177 "content/app/resources/content_resources.grd": { | |
178 "structures": [20000], | |
113 }, | 179 }, |
114 "content/app/strings/content_strings.grd": { | 180 "content/app/strings/content_strings.grd": { |
115 "messages": [19300], | 181 "messages": [20100], |
116 }, | |
117 "components/policy/resources/policy_templates.grd": { | |
118 "structures": [20100], | |
119 "messages": [20110], | |
120 }, | |
121 "chrome/browser/resources/invalidations_resources.grd": { | |
122 "includes": [21100], | |
123 }, | |
124 # This file is generated during the build. | |
125 "<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd": { | |
126 "includes": [21150], | |
127 }, | |
128 "devtools_resources.grd": { | |
129 "includes": [21150], | |
130 }, | |
131 "chrome/browser/resources/options_resources.grd": { | |
132 "includes": [22150], | |
133 "structures": [22350], | |
134 }, | |
135 "chrome/browser/resources/options_test_resources.grd": { | |
136 "includes": [22550], | |
137 "structures": [22590], | |
138 }, | |
139 "chrome/test/data/webui_test_resources.grd": { | |
140 "includes": [22630], | |
141 "structures": [22640], | |
142 }, | |
143 "chrome/browser/resources/quota_internals_resources.grd": { | |
144 "includes": [22950], | |
145 }, | 182 }, |
146 "content/content_resources.grd": { | 183 "content/content_resources.grd": { |
147 "includes": [23650], | 184 "includes": [20400], |
148 }, | |
149 # ios_web strings and content strings must start at the same id. | |
150 # App only use one file depending on whether it is iOS or other platform. | |
151 "ios/web/ios_web_resources.grd": { | |
152 "includes": [23650], | |
153 }, | |
154 # ios/web test strings and content/shell strings must start at the same id. | |
155 # App only use one file depending on whether it is iOS or other platform. | |
156 "ios/web/test/test_resources.grd": { | |
157 "includes": [24150], | |
158 }, | 185 }, |
159 "content/shell/shell_resources.grd": { | 186 "content/shell/shell_resources.grd": { |
160 "includes": [24150], | 187 "includes": [20500], |
161 }, | 188 }, |
189 | |
162 # This file is generated during the build. | 190 # This file is generated during the build. |
163 "<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.grd": { | 191 "<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.grd": { |
164 "includes": [24300], | 192 "includes": [20550], |
165 }, | 193 }, |
166 # iOS resources overlap with android_webview, ash, chromeos and extensions_api , | 194 # END content/ section. |
167 # as these are not used on iOS. | 195 |
168 "ios/chrome/app/strings/ios_strings.grd": { | 196 # START ios/ section. |
169 "messages": [24550], | 197 # |
170 }, | 198 # content/ and ios/ must start at the same id. |
199 # App only use one file depending on whether it is iOS or other platform. | |
200 "ios/chrome/app/resources/ios_resources.grd": { | |
201 "includes": [20000], | |
202 "structures": [20300], | |
203 }, | |
204 | |
171 # Chromium strings and Google Chrome strings must start at the same id. | 205 # Chromium strings and Google Chrome strings must start at the same id. |
172 # We only use one file depending on whether we're building Chromium or | 206 # We only use one file depending on whether we're building Chromium or |
173 # Google Chrome. | 207 # Google Chrome. |
174 "ios/chrome/app/strings/ios_chromium_strings.grd": { | 208 "ios/chrome/app/strings/ios_chromium_strings.grd": { |
175 "messages": [25455], | 209 "messages": [20450], |
176 }, | 210 }, |
177 "ios/chrome/app/strings/ios_google_chrome_strings.grd": { | 211 "ios/chrome/app/strings/ios_google_chrome_strings.grd": { |
178 "messages": [25455], | 212 "messages": [20450], |
179 }, | 213 }, |
180 "ios/chrome/app/resources/ios_resources.grd": { | 214 |
181 "structures": [25650], | 215 "ios/chrome/app/strings/ios_strings.grd": { |
182 "includes": [25760], | 216 "messages": [20650], |
183 }, | 217 }, |
184 "ios/chrome/app/theme/ios_theme_resources.grd": { | 218 "ios/chrome/app/theme/ios_theme_resources.grd": { |
185 "structures": [25570], | 219 "structures": [20750], |
186 }, | 220 }, |
187 "ios/chrome/share_extension/strings/ios_share_extension_strings.grd": { | 221 "ios/chrome/share_extension/strings/ios_share_extension_strings.grd": { |
188 "messages": [26025], | 222 "messages": [20850], |
189 }, | 223 }, |
190 "ios/chrome/today_extension/strings/ios_today_extension_strings.grd": { | 224 "ios/chrome/today_extension/strings/ios_today_extension_strings.grd": { |
191 "messages": [26035], | 225 "messages": [20860], |
192 }, | 226 }, |
227 "ios/web/ios_web_resources.grd": { | |
228 "includes": [20890], | |
229 }, | |
230 "ios/web/test/test_resources.grd": { | |
231 "includes": [20920], | |
232 }, | |
233 # END ios/ section. | |
234 | |
235 # START "everything else" section. | |
236 # Everything but chrome/, components/, content/, and ios/ | |
237 "android_webview/ui/aw_resources.grd": { | |
238 "includes": [23500], | |
239 }, | |
240 "android_webview/ui/aw_strings.grd": { | |
241 "messages": [23510], | |
242 }, | |
243 | |
193 "ash/ash_strings.grd": { | 244 "ash/ash_strings.grd": { |
194 "messages": [24550], | 245 "messages": [23520], |
195 }, | 246 }, |
196 "android_webview/ui/aw_resources.grd": { | 247 "ash/resources/ash_resources.grd": { |
197 "includes": [24550], | 248 "structures": [23920], |
198 }, | 249 }, |
199 "android_webview/ui/aw_strings.grd": { | 250 |
200 "messages": [24650], | 251 "blimp/client/support/resources/blimp_strings.grd": { |
252 "messages": [24200], | |
253 }, | |
254 "blimp/engine/app/blimp_browser_resources.grd": { | |
255 "includes": [24250], | |
256 }, | |
257 | |
258 "chromecast/browser/cast_browser_resources.grd": { | |
259 "includes": [24300], | |
260 }, | |
261 | |
262 "device/bluetooth/bluetooth_strings.grd": { | |
263 "messages": [24400], | |
264 }, | |
265 | |
266 "extensions/browser/resources/extensions_browser_resources.grd": { | |
267 "structures": [24450], | |
268 }, | |
269 "extensions/extensions_resources.grd": { | |
270 "includes": [24460], | |
271 }, | |
272 "extensions/renderer/resources/extensions_renderer_resources.grd": { | |
273 "includes": [24470], | |
274 "structures": [24600], | |
275 }, | |
276 "extensions/shell/app_shell_resources.grd": { | |
277 "includes": [24610], | |
278 }, | |
279 "extensions/strings/extensions_strings.grd": { | |
280 "messages": [24620], | |
281 }, | |
282 | |
283 "headless/lib/resources/headless_lib_resources.grd": { | |
284 "includes": [24700], | |
285 }, | |
286 | |
287 "net/base/net_resources.grd": { | |
288 "includes": [24750], | |
289 }, | |
290 | |
291 "remoting/resources/remoting_strings.grd": { | |
292 "messages": [24800], | |
293 }, | |
294 | |
295 "third_party/WebKit/public/blink_image_resources.grd": { | |
296 "structures": [25300], | |
297 }, | |
298 "third_party/WebKit/public/blink_resources.grd": { | |
299 "includes": [25400], | |
300 }, | |
301 | |
302 "ui/app_list/resources/app_list_resources.grd": { | |
303 "structures": [25800], | |
201 }, | 304 }, |
202 "ui/chromeos/resources/ui_chromeos_resources.grd": { | 305 "ui/chromeos/resources/ui_chromeos_resources.grd": { |
203 "structures": [24850], | 306 "structures": [25820], |
204 }, | 307 }, |
205 "ui/chromeos/ui_chromeos_strings.grd": { | 308 "ui/chromeos/ui_chromeos_strings.grd": { |
206 "messages": [24950], | 309 "messages": [25920], |
207 }, | |
208 "extensions/extensions_resources.grd": { | |
209 "includes": [25250], | |
210 }, | |
211 "extensions/browser/resources/extensions_browser_resources.grd": { | |
212 "structures": [25450], | |
213 }, | |
214 "extensions/renderer/resources/extensions_renderer_resources.grd": { | |
215 "includes": [25500], | |
216 "structures": [25600], | |
217 }, | |
218 "extensions/strings/extensions_strings.grd": { | |
219 "messages": [25650], | |
220 }, | |
221 "extensions/shell/app_shell_resources.grd": { | |
222 "includes": [26050], | |
223 }, | |
224 "chrome/browser/resources/password_manager_internals_resources.grd": { | |
225 "includes": [26350], | |
226 }, | |
227 "device/bluetooth/bluetooth_strings.grd": { | |
228 "messages": [26650], | |
229 }, | 310 }, |
230 "ui/file_manager/file_manager_resources.grd": { | 311 "ui/file_manager/file_manager_resources.grd": { |
231 "includes": [26760], | 312 "includes": [26150], |
232 }, | 313 }, |
233 "components/chrome_apps/chrome_apps_resources.grd": { | 314 "ui/keyboard/keyboard_resources.grd": { |
234 "includes": [26977], | 315 "includes": [26400], |
235 }, | 316 }, |
236 "ui/login/login_resources.grd": { | 317 "ui/login/login_resources.grd": { |
237 "includes": [26990], | 318 "includes": [26500], |
238 }, | 319 }, |
239 "chrome/browser/resources/translate_internals_resources.grd": { | 320 "ui/resources/ui_resources.grd": { |
240 "includes": [27000], | 321 "structures": [26600], |
241 }, | 322 }, |
242 "chrome/browser/resources/sync_file_system_internals_resources.grd": { | 323 "ui/resources/ui_unscaled_resources.grd": { |
243 "includes": [27010], | 324 "includes": [26850], |
244 }, | 325 }, |
245 "chrome/app/address_input_strings.grd": { | 326 "ui/strings/app_locale_settings.grd": { |
246 "messages": [27110], | 327 "messages": [26900], |
247 }, | 328 }, |
248 "remoting/resources/remoting_strings.grd": { | 329 "ui/strings/ui_strings.grd": { |
249 "messages": [27560], | 330 "messages": [26950], |
250 }, | 331 }, |
251 "components/components_locale_settings.grd": { | 332 "ui/views/resources/views_resources.grd": { |
252 "includes": [28010], | 333 "structures": [27150], |
253 "messages": [28015], | 334 }, |
254 }, | 335 "ui/webui/resources/webui_resources.grd": { |
255 "components/components_strings.grd": { | 336 "includes": [27450], |
256 "messages": [28020], | 337 "structures": [27650], |
257 }, | 338 }, |
258 "chrome/browser/resources/task_scheduler_internals/resources.grd": { | 339 |
259 "includes": [29000], | 340 # This file is generated during the build. |
260 }, | 341 "<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd": { |
261 # Chromium strings and Google Chrome strings must start at the same id. | 342 "includes": [28450], |
262 # We only use one file depending on whether we're building Chromium or | 343 }, |
263 # Google Chrome. | 344 "devtools_resources.grd": { |
264 "components/components_chromium_strings.grd": { | 345 "includes": [28450], |
265 "messages": [29280], | 346 }, |
266 }, | 347 # END "everything else" section. |
267 "components/components_google_chrome_strings.grd": { | 348 # Everything but chrome/, components/, content/, and ios/ |
268 "messages": [29280], | 349 |
269 }, | 350 # Thinking about appending to the end? |
270 "components/resources/components_resources.grd": { | 351 # Please read the header and find the right section above instead. |
271 "includes": [29330], | |
272 }, | |
273 "components/resources/components_scaled_resources.grd": { | |
274 "structures": [29880], | |
275 }, | |
276 "third_party/WebKit/public/blink_resources.grd": { | |
277 "includes": [30100], | |
278 "structures": [30400], | |
279 }, | |
280 "chrome/browser/resources/md_policy/policy_resources.grd": { | |
281 "structures": [30630], | |
282 }, | |
283 "chrome/browser/resources/settings/settings_resources.grd": { | |
284 "structures": [30650], | |
285 }, | |
286 "headless/lib/resources/headless_lib_resources.grd": { | |
287 "includes": [30670], | |
288 }, | |
289 "blimp/engine/app/blimp_browser_resources.grd": { | |
290 "includes": [30680], | |
291 }, | |
292 "chromecast/browser/cast_browser_resources.grd": { | |
293 "includes": [30690], | |
294 }, | |
295 "blimp/client/support/resources/blimp_strings.grd": { | |
296 "messages": [30700], | |
297 }, | |
298 | 352 |
299 # Resource ids starting at 31000 are reserved for projects built on Chromium. | 353 # Resource ids starting at 31000 are reserved for projects built on Chromium. |
300 } | 354 } |
OLD | NEW |