Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 | 112 |
| 113 const String& interfaceName() const { return m_interfaceName; } | 113 const String& interfaceName() const { return m_interfaceName; } |
| 114 const String& methodName() const { return m_methodName; } | 114 const String& methodName() const { return m_methodName; } |
| 115 bool forConstructor() const { return m_methodName.isEmpty(); } | 115 bool forConstructor() const { return m_methodName.isEmpty(); } |
| 116 ExceptionState& exceptionState() const { return m_exceptionState; } | 116 ExceptionState& exceptionState() const { return m_exceptionState; } |
| 117 | 117 |
| 118 bool isNullable() const { return m_isNullable; } | 118 bool isNullable() const { return m_isNullable; } |
| 119 String typeName() const { return m_propertyTypeName; } | 119 String typeName() const { return m_propertyTypeName; } |
| 120 IntegerConversionConfiguration numberConversion() const { return m_numbe rConversion; } | 120 IntegerConversionConfiguration numberConversion() const { return m_numbe rConversion; } |
| 121 | 121 |
| 122 ConversionContext& withAttributes(bool, IntegerConversionConfiguration, const String&); | 122 ConversionContext& conversionType(bool, IntegerConversionConfiguration, const String&); |
|
haraken
2013/12/11 08:26:23
I would rename it to setConversionType and reorder
Nils Barth (inactive)
2013/12/11 08:51:31
Done (and removed the integer conversion);
that's
| |
| 123 ConversionContext& withAttributes(bool, IntegerConversionConfiguration); | |
| 124 ConversionContext& withAttributes(bool, const String&); | |
| 125 ConversionContext& withAttributes(bool); | |
| 126 ConversionContext& withAttributes(const String&); | |
| 127 | 123 |
| 128 void throwTypeError(const String& detail); | 124 void throwTypeError(const String& detail); |
| 129 | 125 |
| 130 void resetPerPropertyContext(); | 126 void resetPerPropertyContext(); |
| 131 | 127 |
| 132 private: | 128 private: |
| 133 const String m_interfaceName; | 129 const String m_interfaceName; |
| 134 const String m_methodName; | 130 const String m_methodName; |
| 135 ExceptionState& m_exceptionState; | 131 ExceptionState& m_exceptionState; |
| 136 bool m_dirty; | 132 bool m_dirty; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does not have " + (context.typeName().isEmpty() ? String("the expected type.") : ("a " + context.typeName() + " type.")))); | 322 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does not have " + (context.typeName().isEmpty() ? String("the expected type.") : ("a " + context.typeName() + " type.")))); |
| 327 return false; | 323 return false; |
| 328 } | 324 } |
| 329 } | 325 } |
| 330 return true; | 326 return true; |
| 331 } | 327 } |
| 332 | 328 |
| 333 } | 329 } |
| 334 | 330 |
| 335 #endif // Dictionary_h | 331 #endif // Dictionary_h |
| OLD | NEW |