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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.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/workers/WorkerGlobalScope.h ('k') | Source/core/workers/WorkerMessagingProxy.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 return; 222 return;
223 } 223 }
224 } 224 }
225 } 225 }
226 226
227 EventTarget* WorkerGlobalScope::errorEventTarget() 227 EventTarget* WorkerGlobalScope::errorEventTarget()
228 { 228 {
229 return this; 229 return this;
230 } 230 }
231 231
232 void WorkerGlobalScope::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>) 232 void WorkerGlobalScope::logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack> )
233 { 233 {
234 thread()->workerReportingProxy().postExceptionToWorkerObject(errorMessage, l ineNumber, sourceURL); 234 thread()->workerReportingProxy().postExceptionToWorkerObject(errorMessage, l ineNumber, columnNumber, sourceURL);
235 } 235 }
236 236
237 void WorkerGlobalScope::addConsoleMessage(MessageSource source, MessageLevel lev el, const String& message, unsigned long requestIdentifier) 237 void WorkerGlobalScope::addConsoleMessage(MessageSource source, MessageLevel lev el, const String& message, unsigned long requestIdentifier)
238 { 238 {
239 if (!isContextThread()) { 239 if (!isContextThread()) {
240 postTask(AddConsoleMessageTask::create(source, level, message)); 240 postTask(AddConsoleMessageTask::create(source, level, message));
241 return; 241 return;
242 } 242 }
243 thread()->workerReportingProxy().postConsoleMessageToWorkerObject(source, le vel, message, 0, String()); 243 thread()->workerReportingProxy().postConsoleMessageToWorkerObject(source, le vel, message, 0, String());
244 244
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 { 335 {
336 return script()->idleNotification(); 336 return script()->idleNotification();
337 } 337 }
338 338
339 WorkerEventQueue* WorkerGlobalScope::eventQueue() const 339 WorkerEventQueue* WorkerGlobalScope::eventQueue() const
340 { 340 {
341 return m_eventQueue.get(); 341 return m_eventQueue.get();
342 } 342 }
343 343
344 } // namespace WebCore 344 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | Source/core/workers/WorkerMessagingProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698