OLD | NEW |
1 #include <AdblockPlus/AppInfo.h> | 1 #include <AdblockPlus/AppInfo.h> |
2 #include <AdblockPlus/JsValue.h> | 2 #include <AdblockPlus/JsValue.h> |
3 | 3 |
4 #include "AppInfoJsObject.h" | 4 #include "AppInfoJsObject.h" |
5 #include "Utils.h" | 5 #include "Utils.h" |
6 | 6 |
7 using namespace AdblockPlus; | 7 using namespace AdblockPlus; |
8 | 8 |
9 JsValuePtr AppInfoJsObject::Setup(JsEngine& jsEngine, const AppInfo& appInfo, | 9 JsValuePtr AppInfoJsObject::Setup(JsEnginePtr jsEngine, const AppInfo& appInfo, |
10 JsValuePtr obj) | 10 JsValuePtr obj) |
11 { | 11 { |
12 obj->SetProperty("id", appInfo.id); | 12 obj->SetProperty("id", appInfo.id); |
13 obj->SetProperty("version", appInfo.version); | 13 obj->SetProperty("version", appInfo.version); |
14 obj->SetProperty("name", appInfo.name); | 14 obj->SetProperty("name", appInfo.name); |
15 obj->SetProperty("platform", appInfo.platform); | 15 obj->SetProperty("platform", appInfo.platform); |
16 return obj; | 16 return obj; |
17 } | 17 } |
OLD | NEW |