12012-05-22 Peter Rybin <peter.rybin@gmail.com>
2
3 Web Inspector: CodeGeneratorInspector.py: protect typed API from C++ implicit float to int cast
4 https://bugs.webkit.org/show_bug.cgi?id=87183
5
6 Reviewed by NOBODY (OOPS!).
7
8 An intermediate C++ class is introduced that uses C++ template technique to control actual type
9 of its constructor argument.
10 All input parameters of type "int" now have type ExactlyInt.
11
12 * inspector/CodeGeneratorInspector.py:
13 (TypeModel.RefPtrBased):
14 (TypeModel.Enum):
15 (TypeModel.ValueType):
16 (TypeModel.ExactlyInt):
17 (TypeModel.ExactlyInt.__init__):
18 (TypeModel.ExactlyInt.get_input_param_type_text):
19 (TypeModel.init_class):
20 (ExactlyInt):
21 (that):
22 (ExactlyIntHelper):
23