1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 02:35:47 +01:00

Add first crude binary module implementation.

This commit is contained in:
Kris Maglione
2011-09-22 21:08:40 -04:00
parent d568ce8762
commit 6af256bc53
17 changed files with 1290 additions and 6 deletions

34
binary/src/dactylUtils.h Normal file
View 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;
};