Commit a37d69ec authored by tasak@google.com's avatar tasak@google.com

Add toV8Value which takes creation context and isolate to WebBlob as arguments.

BUG=369451

Review URL: https://codereview.chromium.org/313263002

git-svn-id: svn://svn.chromium.org/blink/trunk@175545 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 0665b8d7
...@@ -83,11 +83,16 @@ WebString WebBlob::uuid() ...@@ -83,11 +83,16 @@ WebString WebBlob::uuid()
return m_private->uuid(); return m_private->uuid();
} }
v8::Handle<v8::Value> WebBlob::toV8Value() v8::Handle<v8::Value> WebBlob::toV8Value(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{ {
if (!m_private.get()) if (!m_private.get())
return v8::Handle<v8::Value>(); return v8::Handle<v8::Value>();
return toV8(m_private.get(), v8::Handle<v8::Object>(), v8::Isolate::GetCurrent()); return toV8(m_private.get(), creationContext, isolate);
}
v8::Handle<v8::Value> WebBlob::toV8Value()
{
return toV8Value(v8::Handle<v8::Object>(), v8::Isolate::GetCurrent());
} }
WebBlob::WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>& blob) WebBlob::WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>& blob)
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#endif #endif
namespace v8 { namespace v8 {
class Isolate;
class Object;
class Value; class Value;
template <class T> class Handle; template <class T> class Handle;
} }
...@@ -72,6 +74,8 @@ public: ...@@ -72,6 +74,8 @@ public:
bool isNull() const { return m_private.isNull(); } bool isNull() const { return m_private.isNull(); }
BLINK_EXPORT v8::Handle<v8::Value> toV8Value(v8::Handle<v8::Object> creationContext, v8::Isolate*);
// FIXME: remove the following toV8Value after fixing chromium code.
BLINK_EXPORT v8::Handle<v8::Value> toV8Value(); BLINK_EXPORT v8::Handle<v8::Value> toV8Value();
#if BLINK_IMPLEMENTATION #if BLINK_IMPLEMENTATION
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment