Add a new api - PWRT::GetPath()
[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
22  protected:
23   explicit PWRT(v8::Isolate* isolate);
24   ~PWRT() override;
25
26  private:
27   DISALLOW_COPY_AND_ASSIGN(PWRT);
28 };
29
30 }  // namespace api
31
32 }  // namespace atom
33
34 #endif  // ATOM_BROWSER_API_ATOM_API_PWRT_H_