Update change log and spec for wrt-plugins-tizen_0.4.36
[platform/framework/web/wrt-plugins-tizen.git] / src / TimeUtil / JSTimeDuration.h
index 0fce198..6d2565c 100755 (executable)
@@ -52,6 +52,9 @@ class JSTimeDuration
      */
     static const JSClassRef getClassRef();
     static JSObjectRef createJSObject(JSContextRef context, const DurationProperties &durations);
+    static JSObjectRef createJSObject(JSContextRef context, const DurationPropertiesPtr duration);
+
+    static JSObjectRef constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
   private:
        enum CompareType {
                DIFFERENCE,
@@ -79,16 +82,6 @@ class JSTimeDuration
     static bool setProperty(JSContextRef context, JSObjectRef object,
             JSStringRef propertyName,  JSValueRef value,  JSValueRef* exception);
 
-    static JSObjectRef constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
-
-    /**
-     * The callback invoked when an object is used as the target of an 'instanceof' expression.
-     */
-    static bool hasInstance(JSContextRef context,
-            JSObjectRef constructor,
-            JSValueRef possibleInstance,
-            JSValueRef* exception);
-
     static JSValueRef diffTimeDuration(JSContextRef context, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef * exception, CompareType type);
     static JSValueRef difference(JSContextRef context, JSObjectRef function, 
        JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef * exception);