OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple 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 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef DOMException_h | 29 #ifndef DOMException_h |
30 #define DOMException_h | 30 #define DOMException_h |
31 | 31 |
32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 36 #include "wtf/text/WTFString.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 typedef int ExceptionCode; | 40 typedef int ExceptionCode; |
40 | 41 |
41 class CORE_EXPORT DOMException final : public GarbageCollectedFinalized<DOMExcep
tion>, public ScriptWrappable { | 42 class CORE_EXPORT DOMException final : public GarbageCollectedFinalized<DOMExcep
tion>, public ScriptWrappable { |
42 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
43 public: | 44 public: |
44 static DOMException* create(ExceptionCode, const String& sanitizedMessage =
String(), const String& unsanitizedMessage = String()); | 45 static DOMException* create(ExceptionCode, const String& sanitizedMessage =
String(), const String& unsanitizedMessage = String()); |
45 | 46 |
(...skipping 21 matching lines...) Expand all Loading... |
67 | 68 |
68 unsigned short m_code; | 69 unsigned short m_code; |
69 String m_name; | 70 String m_name; |
70 String m_sanitizedMessage; | 71 String m_sanitizedMessage; |
71 String m_unsanitizedMessage; | 72 String m_unsanitizedMessage; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace blink | 75 } // namespace blink |
75 | 76 |
76 #endif // DOMException_h | 77 #endif // DOMException_h |
OLD | NEW |