mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 04:44:10 +01:00
36 lines
576 B
C++
36 lines
576 B
C++
|
|
#pragma once
|
|
|
|
#include "config.h"
|
|
#include "dactylIUtils.h"
|
|
|
|
#include "nsISupports.h"
|
|
#include "nsIPrincipal.h"
|
|
#include "nsIXPConnect.h"
|
|
|
|
#include "jsapi.h"
|
|
#include "jsfriendapi.h"
|
|
#include "nsIJSRuntimeService.h"
|
|
#include "nsIJSContextStack.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
class dactylUtils : public dactylIUtils {
|
|
public:
|
|
dactylUtils() NS_HIDDEN;
|
|
~dactylUtils() NS_HIDDEN;
|
|
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_DACTYLIUTILS
|
|
|
|
NS_HIDDEN_(nsresult) Init();
|
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIJSRuntimeService> mRuntimeService;
|
|
JSRuntime *mRuntime;
|
|
|
|
nsCOMPtr<nsIPrincipal> mSystemPrincipal;
|
|
};
|
|
|