Index: Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp |
diff --git a/Source/bindings/v8/V8WorkerContextEventListener.cpp b/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp |
similarity index 85% |
rename from Source/bindings/v8/V8WorkerContextEventListener.cpp |
rename to Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp |
index 76153ae043ff9a692119494ec968913cb8c6ca3c..81b8eefce75f4bd0c5b82d3e7f432d6d0f0835d9 100644 |
--- a/Source/bindings/v8/V8WorkerContextEventListener.cpp |
+++ b/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp |
@@ -30,7 +30,7 @@ |
#include "config.h" |
-#include "bindings/v8/V8WorkerContextEventListener.h" |
+#include "bindings/v8/V8WorkerGlobalScopeEventListener.h" |
#include "V8Event.h" |
#include "V8EventTarget.h" |
@@ -40,16 +40,16 @@ |
#include "bindings/v8/V8ScriptRunner.h" |
#include "bindings/v8/WorkerScriptController.h" |
#include "core/inspector/InspectorInstrumentation.h" |
-#include "core/workers/WorkerContext.h" |
+#include "core/workers/WorkerGlobalScope.h" |
namespace WebCore { |
-V8WorkerContextEventListener::V8WorkerContextEventListener(v8::Local<v8::Object> listener, bool isInline) |
+V8WorkerGlobalScopeEventListener::V8WorkerGlobalScopeEventListener(v8::Local<v8::Object> listener, bool isInline) |
: V8EventListener(listener, isInline) |
{ |
} |
-void V8WorkerContextEventListener::handleEvent(ScriptExecutionContext* context, Event* event) |
+void V8WorkerGlobalScopeEventListener::handleEvent(ScriptExecutionContext* context, Event* event) |
{ |
if (!context) |
return; |
@@ -60,8 +60,8 @@ void V8WorkerContextEventListener::handleEvent(ScriptExecutionContext* context, |
v8::HandleScope handleScope; |
- ASSERT(context->isWorkerContext()); |
- WorkerScriptController* script = static_cast<WorkerContext*>(context)->script(); |
+ ASSERT(context->isWorkerGlobalScope()); |
+ WorkerScriptController* script = static_cast<WorkerGlobalScope*>(context)->script(); |
if (!script) |
return; |
@@ -79,7 +79,7 @@ void V8WorkerContextEventListener::handleEvent(ScriptExecutionContext* context, |
invokeEventHandler(context, event, v8::Local<v8::Value>::New(isolate, jsEvent)); |
} |
-v8::Local<v8::Value> V8WorkerContextEventListener::callListenerFunction(ScriptExecutionContext* context, v8::Handle<v8::Value> jsEvent, Event* event) |
+v8::Local<v8::Value> V8WorkerGlobalScopeEventListener::callListenerFunction(ScriptExecutionContext* context, v8::Handle<v8::Value> jsEvent, Event* event) |
{ |
V8GCController::checkMemoryUsage(); |
@@ -108,7 +108,7 @@ v8::Local<v8::Value> V8WorkerContextEventListener::callListenerFunction(ScriptEx |
return result; |
} |
-v8::Local<v8::Object> V8WorkerContextEventListener::getReceiverObject(ScriptExecutionContext* context, Event* event) |
+v8::Local<v8::Object> V8WorkerGlobalScopeEventListener::getReceiverObject(ScriptExecutionContext* context, Event* event) |
{ |
v8::Local<v8::Object> listener = getListenerObject(context); |