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

Unified Diff: Source/bindings/core/v8/ScriptState.h

Issue 1111163003: Replace v8::Handle<> with v8::Local<> in bindings/core/v8/* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/core/v8/ScriptPromiseTest.cpp ('k') | Source/bindings/core/v8/ScriptState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptState.h
diff --git a/Source/bindings/core/v8/ScriptState.h b/Source/bindings/core/v8/ScriptState.h
index 6d64359fd4e79b0f1d142e6292289633e3c1ef11..5ffe4fc129af6ea84c98fff569da0c1d24486b03 100644
--- a/Source/bindings/core/v8/ScriptState.h
+++ b/Source/bindings/core/v8/ScriptState.h
@@ -44,10 +44,10 @@ public:
private:
v8::HandleScope m_handleScope;
- v8::Handle<v8::Context> m_context;
+ v8::Local<v8::Context> m_context;
};
- static PassRefPtr<ScriptState> create(v8::Handle<v8::Context>, PassRefPtr<DOMWrapperWorld>);
+ static PassRefPtr<ScriptState> create(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>);
virtual ~ScriptState();
static ScriptState* current(v8::Isolate* isolate)
@@ -55,7 +55,7 @@ public:
return from(isolate->GetCurrentContext());
}
- static ScriptState* from(v8::Handle<v8::Context> context)
+ static ScriptState* from(v8::Local<v8::Context> context)
{
ASSERT(!context.IsEmpty());
ScriptState* scriptState = static_cast<ScriptState*>(context->GetAlignedPointerFromEmbedderData(v8ContextPerContextDataIndex));
@@ -75,7 +75,7 @@ public:
virtual void setExecutionContext(ExecutionContext*);
// This can return an empty handle if the v8::Context is gone.
- v8::Handle<v8::Context> context() const { return m_context.newLocal(m_isolate); }
+ v8::Local<v8::Context> context() const { return m_context.newLocal(m_isolate); }
bool contextIsValid() const { return !m_context.isEmpty() && m_perContextData; }
void detachGlobalObject();
void clearContext() { return m_context.clear(); }
@@ -99,7 +99,7 @@ public:
ScriptValue getFromGlobalObject(const char* name);
protected:
- ScriptState(v8::Handle<v8::Context>, PassRefPtr<DOMWrapperWorld>);
+ ScriptState(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>);
private:
v8::Isolate* m_isolate;
« no previous file with comments | « Source/bindings/core/v8/ScriptPromiseTest.cpp ('k') | Source/bindings/core/v8/ScriptState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698