| Index: include/AdblockPlus/JsValue.h |
| =================================================================== |
| --- a/include/AdblockPlus/JsValue.h |
| +++ b/include/AdblockPlus/JsValue.h |
| @@ -31,20 +31,22 @@ namespace AdblockPlus |
| bool IsBool() const; |
| bool IsObject() const; |
| bool IsArray() const; |
| bool IsFunction() const; |
| std::string AsString() const; |
| int64_t AsInt() const; |
| bool AsBool() const; |
| JsValueList AsList() const; |
| + std::vector<std::string> GetOwnPropertyNames() const; |
| JsValuePtr GetProperty(const std::string& name) const; |
| void SetProperty(const std::string& name, const std::string& val); |
| void SetProperty(const std::string& name, int64_t val); |
| void SetProperty(const std::string& name, bool val); |
| + void SetProperty(const std::string& name, JsValuePtr value); |
| inline void SetProperty(const std::string& name, const char* val) |
| { |
| SetProperty(name, std::string(val)); |
| } |
| inline void SetProperty(const std::string& name, int val) |
| { |
| SetProperty(name, (int64_t)val); |
| } |