blob: 28d7bf1acc4ba2a5bfee6f72a6c6925eb7c92564 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HELPERS_H__
#define V8_HELPERS_H__
#include "third_party/npapi/bindings/npruntime.h"
#include <v8.h>
namespace WebCore {
class V8Proxy;
}
// Associates an NPObject with a V8 object.
void WrapNPObject(v8::Handle<v8::Object> obj, NPObject *npobj);
// Retrieves the V8 Context from the NP context pr obj (at most 1 may be NULL).
v8::Local<v8::Context> GetV8Context(NPP npp, NPObject* npobj);
// Get V8Proxy object from an NPObject.
WebCore::V8Proxy* GetV8Proxy(NPObject* npobj);
#endif // V8_HELPERS_H__
|