Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: Source/core/dom/DOMError.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Comment.h ('k') | Source/core/dom/DOMException.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Comment.h ('k') | Source/core/dom/DOMException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698