mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ff569cc4b6
This patch makes NativeJSContainer use per-instance native methods. NativeJSContainer is also updated to use smart JNI reference classes.
23 lines
616 B
C++
23 lines
616 B
C++
/* -*- Mode: c++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4; -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef NativeJSObject_h__
|
|
#define NativeJSObject_h__
|
|
|
|
#include "GeneratedJNIWrappers.h"
|
|
#include "jsapi.h"
|
|
|
|
namespace mozilla {
|
|
namespace widget {
|
|
|
|
NativeJSContainer::LocalRef CreateNativeJSContainer(
|
|
JSContext* cx, JS::HandleObject object);
|
|
|
|
} // namespace widget
|
|
} // namespace mozilla
|
|
|
|
#endif // NativeJSObject_h__
|
|
|