mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-10 17:55:47 +01:00
Add first crude binary module implementation.
This commit is contained in:
34
binary/src/dactylUtils.h
Normal file
34
binary/src/dactylUtils.h
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user