1 #ifndef ATOM_BROWSER_API_ATOM_API_PWRT_H_
2 #define ATOM_BROWSER_API_ATOM_API_PWRT_H_
4 #include "atom/browser/api/trackable_object.h"
5 #include "base/compiler_specific.h"
6 #include "native_mate/handle.h"
12 class PWRT : public mate::TrackableObject<PWRT> {
14 static mate::Handle<PWRT> Create(v8::Isolate* isolate);
16 static void BuildPrototype(v8::Isolate* isolate,
17 v8::Local<v8::FunctionTemplate> prototype);
19 std::string GetMessage();
20 std::string GetPath();
22 bool isElectronLaunch();
23 void HideSplashScreen(int reason);
24 void Log(const std::string& message);
27 explicit PWRT(v8::Isolate* isolate);
31 DISALLOW_COPY_AND_ASSIGN(PWRT);
38 #endif // ATOM_BROWSER_API_ATOM_API_PWRT_H_