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

Unified Diff: Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/V8WorkerGlobalScopeEventListener.h ('k') | Source/bindings/v8/WorkerScriptController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/bindings/v8/V8WorkerGlobalScopeEventListener.h ('k') | Source/bindings/v8/WorkerScriptController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698