ab25f3458f7d4ef0bf76acac5611e13617d8d9c0
[platform/framework/web/crosswalk-tizen.git] / atom / browser / api / atom_api_pwrt.h
1 #ifndef ATOM_BROWSER_API_ATOM_API_PWRT_H_
2 #define ATOM_BROWSER_API_ATOM_API_PWRT_H_
3
4 #include "atom/browser/api/trackable_object.h"
5 #include "base/compiler_specific.h"
6 #include "native_mate/handle.h"
7
8 namespace atom {
9
10 namespace api {
11
12 class PWRT : public mate::TrackableObject<PWRT> {
13  public:
14   static mate::Handle<PWRT> Create(v8::Isolate* isolate);
15
16   static void BuildPrototype(v8::Isolate* isolate,
17                              v8::Local<v8::FunctionTemplate> prototype);
18
19   std::string GetMessage();
20   std::string GetPath();
21   bool isTizenWebApp();
22   bool isElectronLaunch();
23   void HideSplashScreen(int reason);
24   void Log(const std::string& message);
25
26  protected:
27   explicit PWRT(v8::Isolate* isolate);
28   ~PWRT() override;
29
30  private:
31   DISALLOW_COPY_AND_ASSIGN(PWRT);
32 };
33
34 }  // namespace api
35
36 }  // namespace atom
37
38 #endif  // ATOM_BROWSER_API_ATOM_API_PWRT_H_