X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=binary%2Fsrc%2FdactylUtils.h;fp=binary%2Fsrc%2FdactylUtils.h;h=74545366fad2a8116f1d166ffb2fd946e13fcff8;hb=9044153cb63835e39b9de8ec4ade237c03e3888a;hp=0000000000000000000000000000000000000000;hpb=70740024f9c028c1fd63e1a1850ab062ff956054;p=dactyl.git diff --git a/binary/src/dactylUtils.h b/binary/src/dactylUtils.h new file mode 100644 index 0000000..7454536 --- /dev/null +++ b/binary/src/dactylUtils.h @@ -0,0 +1,36 @@ + +#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 mRuntimeService; + JSRuntime *mRuntime; + + nsCOMPtr mSystemPrincipal; +}; + +/* vim:se sts=4 sw=4 et cin ft=cpp: */