diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 15:12:51 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 15:12:51 +0000 |
commit | 4be8f31c6f2f69d1c04a0ff93612ff533ab2ad26 (patch) | |
tree | 00278fb48f345f87d9d7b4faede88b29b4d71c65 /tools/gritsettings/resource_ids | |
parent | 998e8b907c31e8246ed304acf87c6087f3a526bf (diff) | |
download | chromium_src-4be8f31c6f2f69d1c04a0ff93612ff533ab2ad26.zip chromium_src-4be8f31c6f2f69d1c04a0ff93612ff533ab2ad26.tar.gz chromium_src-4be8f31c6f2f69d1c04a0ff93612ff533ab2ad26.tar.bz2 |
Prepare for moving grit to its own open-source project.
This involved:
- Removing a grit->Chrome dependency that had been added in a unit test;
- Moving the very project-specific resource_ids file to not sit in the same directory as the grit files (albeit in a hacky way; will fix this better later as per TODOs in code); and
- Removing the hard-coding of "project base dir is two directories up from grit.py" and instead making that a parameter of resource_ids (as per TODO in code, this should later move to be a parameter of the .grd file).
Also fixed a minor bug in relpath in misc.py, and fixed line length in grd_runner.py.
The next steps will be to copy the tools/grit folder into http://code.google.com/p/grit-i18n, then in a single commit delete tools/grit from the Chrome repo and add it back in via DEPS.
Follow-up fixes will address some of the TODOs, and later fixes will generalize a few things and add some features available in a different version of grit.
BUG=97420
TEST=trybots should catch any breakage here
Review URL: http://codereview.chromium.org/7976026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gritsettings/resource_ids')
-rw-r--r-- | tools/gritsettings/resource_ids | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/tools/gritsettings/resource_ids b/tools/gritsettings/resource_ids new file mode 100644 index 0000000..d8f71ff --- /dev/null +++ b/tools/gritsettings/resource_ids @@ -0,0 +1,175 @@ +# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# This file is used to assign starting resource ids for resources and strings +# used by Chromium. This is done to ensure that resource ids are unique +# across all the grd files. If you are adding a new grd file, please add +# a new entry to this file. +# +# The first entry in the file, SRCDIR, is special: It is a relative path from +# this file to the base of your checkout. +# +# http://msdn.microsoft.com/en-us/library/t2zechd4(VS.71).aspx says that the +# range for IDR_ is 1 to 28,671 and the range for IDS_ is 1 to 32,767 and +# common convention starts practical use of IDs at 100 or 101. +{ + "SRCDIR": "../..", + + "chrome/browser/browser_resources.grd": { + "includes": [500], + }, + "chrome/browser/resources/component_extension_resources.grd": { + "includes": [1000], + }, + "chrome/browser/resources/net_internals_resources.grd": { + "includes": [1500], + }, + "chrome/browser/resources/shared_resources.grd": { + "includes": [2000], + }, + "chrome/common/common_resources.grd": { + "includes": [2500], + }, + "chrome/default_plugin/default_plugin_resources.grd": { + "includes": [3000], + }, + "chrome/renderer/renderer_resources.grd": { + "includes": [3500], + }, + "net/base/net_resources.grd": { + "includes": [4000], + }, + "webkit/glue/webkit_resources.grd": { + "includes": [4500], + }, + "webkit/tools/test_shell/test_shell_resources.grd": { + "includes": [5000], + }, + "ui/resources/ui_resources.grd": { + "includes": [5500], + }, + "chrome/app/theme/theme_resources.grd": { + "includes": [6000], + }, + "chrome_frame/resources/chrome_frame_resources.grd": { + "includes": [6500], + }, + # WebKit.grd can be in two different places depending on whether we are + # in a chromium checkout or a webkit-only checkout. + "third_party/WebKit/Source/WebKit/chromium/WebKit.grd": { + "includes": [7000], + }, + "WebKit.grd": { + "includes": [7000], + }, + + "ui/base/strings/app_locale_settings.grd": { + "messages": [7500], + }, + "chrome/app/resources/locale_settings.grd": { + "includes": [8000], + "messages": [8500], + }, + # These each start with the same resource id because we only use one + # file for each build (cros, linux, mac, or win). + "chrome/app/resources/locale_settings_cros.grd": { + "messages": [9000], + }, + "chrome/app/resources/locale_settings_linux.grd": { + "messages": [9000], + }, + "chrome/app/resources/locale_settings_mac.grd": { + "messages": [9000], + }, + "chrome/app/resources/locale_settings_win.grd": { + "messages": [9000], + }, + + "ui/base/strings/ui_strings.grd": { + "messages": [9500], + }, + # Chromium strings and Google Chrome strings must start at the same id. + # We only use one file depending on whether we're building Chromium or + # Google Chrome. + "chrome/app/chromium_strings.grd": { + "messages": [10000], + }, + "chrome/app/google_chrome_strings.grd": { + "messages": [10000], + }, + # Leave lots of space for generated_resources since it has most of our + # strings. + "chrome/app/generated_resources.grd": { + "structures": [10500], + "messages": [11000], + }, + # The chrome frame dialogs are also in generated_resources.grd so they + # get included by the translation console. We make sure that the ids + # for structures here are the same as for generated_resources.grd. + "chrome_frame/resources/chrome_frame_dialogs.grd": { + "structures": [10500], + "includes": [10750], + }, + "webkit/glue/inspector_strings.grd": { + "messages": [16000], + }, + "webkit/glue/webkit_strings.grd": { + "messages": [16500], + }, + + "chrome_frame/resources/chrome_frame_resources.grd": { + "includes": [17500], + "structures": [18000], + }, + + "ui/gfx/gfx_resources.grd": { + "includes": [18500], + }, + + "chrome/app/policy/policy_templates.grd": { + "structures": [19000], + "messages": [19010], + }, + + "chrome/browser/autofill/autofill_resources.grd": { + "messages": [19500], + }, + "chrome/browser/resources/sync_internals_resources.grd": { + "includes": [20000], + }, + # This file is generated during the build. + "<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd": { + "includes": [20500], + }, + # All standard and large theme resources should have the same IDs. + "chrome/app/theme/theme_resources_standard.grd": { + "includes": [21000], + }, + "chrome/app/theme/theme_resources_large.grd": { + "includes": [21000], + }, + # This file is generated during the build. + "chrome/browser/debugger/frontend/devtools_frontend_resources.grd": { + "includes": [21500], + }, + "chrome/browser/resources/options_resources.grd": { + "includes": [22000], + }, + "cloud_print/virtual_driver/win/install/virtual_driver_setup_resources.grd": { + "messages": [22500], + }, + "chrome/browser/resources/quota_internals_resources.grd": { + "includes": [23000], + }, + "chrome/browser/resources/workers_resources.grd": { + "includes": [23500], + }, + # All standard and large theme resources should have the same IDs. + "ui/resources/ui_resources_standard.grd": { + "includes": [24000], + }, + "ui/resources/ui_resources_large.grd": { + "includes": [24000], + }, +} |