Home | History | Annotate | Download | only in src
      1 // Copyright (C) 2013 Google Inc.
      2 //
      3 // Licensed under the Apache License, Version 2.0 (the "License");
      4 // you may not use this file except in compliance with the License.
      5 // You may obtain a copy of the License at
      6 //
      7 // http://www.apache.org/licenses/LICENSE-2.0
      8 //
      9 // Unless required by applicable law or agreed to in writing, software
     10 // distributed under the License is distributed on an "AS IS" BASIS,
     11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 // See the License for the specific language governing permissions and
     13 // limitations under the License.
     14 
     15 #ifndef I18N_ADDRESSINPUT_GRIT_H_
     16 #define I18N_ADDRESSINPUT_GRIT_H_
     17 
     18 namespace i18n {
     19 namespace addressinput {
     20 
     21 // A message identifier that is guaranteed to not clash with any
     22 // IDS_ADDRESSINPUT_I18N_* identifiers that are generated by GRIT. GRIT
     23 // generates messages in the range from decimal 101 to 0x7FFF in order to work
     24 // with Windows.
     25 // https://code.google.com/p/grit-i18n/source/browse/trunk/grit/format/rc_header.py?r=94#169
     26 // http://msdn.microsoft.com/en-us/library/t2zechd4(VS.71).aspx
     27 //
     28 // The enum must be named to enable using it in gtest templates, e.g.
     29 // EXPECT_EQ(INVALID_MESSAGE_ID, my_id) will not compile on some platforms when
     30 // the enum is unnamed.
     31 enum MessageIdentifier { INVALID_MESSAGE_ID = 0 };
     32 
     33 }  // namespace addressinput
     34 }  // namespace i18n
     35 
     36 #endif  // I18N_ADDRESSINPUT_GRIT_H_
     37