| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 String ExceptionMessages::FailedToDelete(const char* property, | 75 String ExceptionMessages::FailedToDelete(const char* property, |
| 76 const char* type, | 76 const char* type, |
| 77 const String& detail) { | 77 const String& detail) { |
| 78 return "Failed to delete the '" + String(property) + "' property from '" + | 78 return "Failed to delete the '" + String(property) + "' property from '" + |
| 79 String(type) + "': " + detail; | 79 String(type) + "': " + detail; |
| 80 } | 80 } |
| 81 | 81 |
| 82 String ExceptionMessages::FailedToGetIndexed(const char* type, | 82 String ExceptionMessages::FailedToGetIndexed(const char* type, |
| 83 const String& detail) { | 83 const String& detail) { |
| 84 return "Failed to read an indexed property from '" + String(type) + "': " + | 84 return "Failed to read an indexed property from '" + String(type) + |
| 85 detail; | 85 "': " + detail; |
| 86 } | 86 } |
| 87 | 87 |
| 88 String ExceptionMessages::FailedToSetIndexed(const char* type, | 88 String ExceptionMessages::FailedToSetIndexed(const char* type, |
| 89 const String& detail) { | 89 const String& detail) { |
| 90 return "Failed to set an indexed property on '" + String(type) + "': " + | 90 return "Failed to set an indexed property on '" + String(type) + |
| 91 detail; | 91 "': " + detail; |
| 92 } | 92 } |
| 93 | 93 |
| 94 String ExceptionMessages::FailedToDeleteIndexed(const char* type, | 94 String ExceptionMessages::FailedToDeleteIndexed(const char* type, |
| 95 const String& detail) { | 95 const String& detail) { |
| 96 return "Failed to delete an indexed property from '" + String(type) + "': " + | 96 return "Failed to delete an indexed property from '" + String(type) + |
| 97 detail; | 97 "': " + detail; |
| 98 } | 98 } |
| 99 | 99 |
| 100 String ExceptionMessages::ConstructorNotCallableAsFunction(const char* type) { | 100 String ExceptionMessages::ConstructorNotCallableAsFunction(const char* type) { |
| 101 return FailedToConstruct(type, | 101 return FailedToConstruct(type, |
| 102 "Please use the 'new' operator, this DOM object " | 102 "Please use the 'new' operator, this DOM object " |
| 103 "constructor cannot be called as a function."); | 103 "constructor cannot be called as a function."); |
| 104 } | 104 } |
| 105 | 105 |
| 106 String ExceptionMessages::IncorrectPropertyType(const String& property, | 106 String ExceptionMessages::IncorrectPropertyType(const String& property, |
| 107 const String& detail) { | 107 const String& detail) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 CORE_EXPORT String ExceptionMessages::FormatNumber<float>(float number) { | 177 CORE_EXPORT String ExceptionMessages::FormatNumber<float>(float number) { |
| 178 return FormatPotentiallyNonFiniteNumber(number); | 178 return FormatPotentiallyNonFiniteNumber(number); |
| 179 } | 179 } |
| 180 | 180 |
| 181 template <> | 181 template <> |
| 182 CORE_EXPORT String ExceptionMessages::FormatNumber<double>(double number) { | 182 CORE_EXPORT String ExceptionMessages::FormatNumber<double>(double number) { |
| 183 return FormatPotentiallyNonFiniteNumber(number); | 183 return FormatPotentiallyNonFiniteNumber(number); |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| OLD | NEW |