diff options
author | rouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad> | 2013-11-14 21:55:33 +0000 |
---|---|---|
committer | rouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad> | 2013-11-14 21:55:33 +0000 |
commit | 04e3fcc1dd4a9beae60228d3a390025761cc2b65 (patch) | |
tree | c42a493d378700b71c513013d1a9d78fa4f47d12 /cpp/src | |
parent | c49156d6c80a08cc55ed968e4ab3a616409e72bc (diff) | |
download | src-04e3fcc1dd4a9beae60228d3a390025761cc2b65.tar.gz |
[cpp] GRIT messages
This patch is part of a series of patches that enable showing an address
input form. This patch adds a GRIT dependency and messages. The messages
come from:
https://code.google.com/p/libaddressinput/source/browse/trunk/java/res/values/address_strings.xml?r=124
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@156 38ededc0-08b8-5190-f2ac-b31f878777ad
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/grit.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp/src/grit.h b/cpp/src/grit.h new file mode 100644 index 0000000..9e1de97 --- /dev/null +++ b/cpp/src/grit.h @@ -0,0 +1,32 @@ +// Copyright (C) 2013 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef I18N_ADDRESSINPUT_GRIT_H_ +#define I18N_ADDRESSINPUT_GRIT_H_ + +namespace i18n { +namespace addressinput { + +// A message identifier that is guaranteed to not clash with any +// IDS_ADDRESSINPUT_I18N_* identifiers that are generated by GRIT. GRIT +// generates messages in the range from decimal 101 to 0x7FFF in order to work +// with Windows. +// https://code.google.com/p/grit-i18n/source/browse/trunk/grit/format/rc_header.py?r=94#169 +// http://msdn.microsoft.com/en-us/library/t2zechd4(VS.71).aspx +enum { INVALID_MESSAGE_ID = 0 }; + +} // namespace addressinput +} // namespace i18n + +#endif // I18N_ADDRESSINPUT_GRIT_H_ |