| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 : ExceptionState(nullptr, | 180 : ExceptionState(nullptr, |
| 181 ExceptionState::UnknownContext, | 181 ExceptionState::UnknownContext, |
| 182 nullptr, | 182 nullptr, |
| 183 nullptr) {} | 183 nullptr) {} |
| 184 ~DummyExceptionStateForTesting() { | 184 ~DummyExceptionStateForTesting() { |
| 185 // Prevent the base class throw an exception. | 185 // Prevent the base class throw an exception. |
| 186 if (hadException()) { | 186 if (hadException()) { |
| 187 clearException(); | 187 clearException(); |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | |
| 191 void throwDOMException(ExceptionCode, const String& message) override; | 190 void throwDOMException(ExceptionCode, const String& message) override; |
| 192 void throwTypeError(const String& message) override; | 191 void throwTypeError(const String& message) override; |
| 193 void throwSecurityError(const String& sanitizedMessage, | 192 void throwSecurityError(const String& sanitizedMessage, |
| 194 const String& unsanitizedMessage) override; | 193 const String& unsanitizedMessage) override; |
| 195 void throwRangeError(const String& message) override; | 194 void throwRangeError(const String& message) override; |
| 196 void rethrowV8Exception(v8::Local<v8::Value>) override; | 195 void rethrowV8Exception(v8::Local<v8::Value>) override; |
| 196 ExceptionState& returnThis() { return *this; } |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| 200 | 200 |
| 201 #endif // ExceptionState_h | 201 #endif // ExceptionState_h |
| OLD | NEW |