| Index: Source/bindings/core/v8/V8DOMConfiguration.h
|
| diff --git a/Source/bindings/core/v8/V8DOMConfiguration.h b/Source/bindings/core/v8/V8DOMConfiguration.h
|
| index ce95d77deeae3c280105fef88d1795ea88a134c7..b0d8874093d8685616fcb7eacf17a176b9147487 100644
|
| --- a/Source/bindings/core/v8/V8DOMConfiguration.h
|
| +++ b/Source/bindings/core/v8/V8DOMConfiguration.h
|
| @@ -125,10 +125,28 @@ public:
|
| struct ConstantConfiguration {
|
| ConstantConfiguration& operator=(const ConstantConfiguration&) = delete;
|
| DISALLOW_ALLOCATION();
|
| + ConstantConfiguration(const char* const name, unsigned value, ConstantType type)
|
| + : name(name)
|
| + , ivalue(value)
|
| + , type(type) {}
|
| + ConstantConfiguration(const char* const name, int value, ConstantType type)
|
| + : name(name)
|
| + , ivalue(value)
|
| + , type(type) {}
|
| + ConstantConfiguration(const char* const name, double value, ConstantType type)
|
| + : name(name)
|
| + , dvalue(value)
|
| + , type(type) {}
|
| + ConstantConfiguration(const char* const name, const char* const value, ConstantType type)
|
| + : name(name)
|
| + , svalue(value)
|
| + , type(type) {}
|
| const char* const name;
|
| - int ivalue;
|
| - double dvalue;
|
| - const char* const svalue;
|
| + union {
|
| + int ivalue;
|
| + double dvalue;
|
| + const char* const svalue;
|
| + };
|
| ConstantType type;
|
| };
|
|
|
|
|