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

Side by Side Diff: Source/core/dom/ErrorEvent.cpp

Issue 19693006: Pass column as 4th argument to WorkerGlobalScope.onerror handler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 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/ErrorEvent.h ('k') | Source/core/dom/ErrorEvent.idl » ('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) 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
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
OLDNEW
« no previous file with comments | « Source/core/dom/ErrorEvent.h ('k') | Source/core/dom/ErrorEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698