OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/dom/DOMException.h" | 30 #include "core/dom/DOMException.h" |
31 #include "core/dom/ExceptionCode.h" | 31 #include "core/dom/ExceptionCode.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class DOMError : public RefCountedWillBeGarbageCollectedFinalized<DOMError>, pub
lic ScriptWrappable { | 39 class DOMError : public RefCountedWillBeGarbageCollectedFinalized<DOMError>, pub
lic ScriptWrappable { |
| 40 DEFINE_WRAPPERTYPEINFO(); |
40 public: | 41 public: |
41 static PassRefPtrWillBeRawPtr<DOMError> create(const String& name) | 42 static PassRefPtrWillBeRawPtr<DOMError> create(const String& name) |
42 { | 43 { |
43 return adoptRefWillBeNoop(new DOMError(name)); | 44 return adoptRefWillBeNoop(new DOMError(name)); |
44 } | 45 } |
45 static PassRefPtrWillBeRawPtr<DOMError> create(const String& name, const Str
ing& message) | 46 static PassRefPtrWillBeRawPtr<DOMError> create(const String& name, const Str
ing& message) |
46 { | 47 { |
47 return adoptRefWillBeNoop(new DOMError(name, message)); | 48 return adoptRefWillBeNoop(new DOMError(name, message)); |
48 } | 49 } |
49 | 50 |
(...skipping 17 matching lines...) Expand all Loading... |
67 DOMError(const String& name, const String& message); | 68 DOMError(const String& name, const String& message); |
68 | 69 |
69 private: | 70 private: |
70 const String m_name; | 71 const String m_name; |
71 const String m_message; | 72 const String m_message; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace blink | 75 } // namespace blink |
75 | 76 |
76 #endif // DOMError_h | 77 #endif // DOMError_h |
OLD | NEW |