| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #if ENABLE(SHARED_WORKERS) | 33 #if ENABLE(SHARED_WORKERS) |
| 34 | 34 |
| 35 #include "SharedWorkerContext.h" | 35 #include "SharedWorkerContext.h" |
| 36 | 36 |
| 37 #include "DOMWindow.h" | 37 #include "DOMWindow.h" |
| 38 #include "EventNames.h" | 38 #include "EventNames.h" |
| 39 #include "MessageEvent.h" | 39 #include "MessageEvent.h" |
| 40 #include "NotImplemented.h" | |
| 41 #include "ScriptCallStack.h" | 40 #include "ScriptCallStack.h" |
| 42 #include "SharedWorkerThread.h" | 41 #include "SharedWorkerThread.h" |
| 42 #include "core/platform/NotImplemented.h" |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> port) | 46 PassRefPtr<MessageEvent> createConnectEvent(PassRefPtr<MessagePort> port) |
| 47 { | 47 { |
| 48 RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortAr
ray(1, port))); | 48 RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortAr
ray(1, port))); |
| 49 event->initEvent(eventNames().connectEvent, false, false); | 49 event->initEvent(eventNames().connectEvent, false, false); |
| 50 return event.release(); | 50 return event.release(); |
| 51 } | 51 } |
| 52 | 52 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 | 80 |
| 81 void SharedWorkerContext::logExceptionToConsole(const String& errorMessage, cons
t String& sourceURL, int lineNumber, PassRefPtr<ScriptCallStack> callStack) | 81 void SharedWorkerContext::logExceptionToConsole(const String& errorMessage, cons
t String& sourceURL, int lineNumber, PassRefPtr<ScriptCallStack> callStack) |
| 82 { | 82 { |
| 83 WorkerContext::logExceptionToConsole(errorMessage, sourceURL, lineNumber, ca
llStack); | 83 WorkerContext::logExceptionToConsole(errorMessage, sourceURL, lineNumber, ca
llStack); |
| 84 addMessageToWorkerConsole(JSMessageSource, ErrorMessageLevel, errorMessage,
sourceURL, lineNumber, callStack); | 84 addMessageToWorkerConsole(JSMessageSource, ErrorMessageLevel, errorMessage,
sourceURL, lineNumber, callStack); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace WebCore | 87 } // namespace WebCore |
| 88 | 88 |
| 89 #endif // ENABLE(SHARED_WORKERS) | 89 #endif // ENABLE(SHARED_WORKERS) |
| OLD | NEW |