OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 ErrorEvent::ErrorEvent() | 45 ErrorEvent::ErrorEvent() |
46 { | 46 { |
47 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
48 } | 48 } |
49 | 49 |
50 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ
er) | 50 ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ
er) |
51 : Event(type, initializer) | 51 : Event(type, initializer) |
52 , m_message(initializer.message) | 52 , m_message(initializer.message) |
53 , m_fileName(initializer.filename) | 53 , m_fileName(initializer.filename) |
54 , m_lineNumber(initializer.lineno) | 54 , m_lineNumber(initializer.lineno) |
| 55 , m_columnNumber(initializer.column) |
55 { | 56 { |
56 ScriptWrappable::init(this); | 57 ScriptWrappable::init(this); |
57 } | 58 } |
58 | 59 |
59 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber) | 60 ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned l
ineNumber, unsigned columnNumber) |
60 : Event(eventNames().errorEvent, false, true) | 61 : Event(eventNames().errorEvent, false, true) |
61 , m_message(message) | 62 , m_message(message) |
62 , m_fileName(fileName) | 63 , m_fileName(fileName) |
63 , m_lineNumber(lineNumber) | 64 , m_lineNumber(lineNumber) |
| 65 , m_columnNumber(columnNumber) |
64 { | 66 { |
65 ScriptWrappable::init(this); | 67 ScriptWrappable::init(this); |
66 } | 68 } |
67 | 69 |
68 ErrorEvent::~ErrorEvent() | 70 ErrorEvent::~ErrorEvent() |
69 { | 71 { |
70 } | 72 } |
71 | 73 |
72 const AtomicString& ErrorEvent::interfaceName() const | 74 const AtomicString& ErrorEvent::interfaceName() const |
73 { | 75 { |
74 return eventNames().interfaceForErrorEvent; | 76 return eventNames().interfaceForErrorEvent; |
75 } | 77 } |
76 | 78 |
77 } // namespace WebCore | 79 } // namespace WebCore |
OLD | NEW |