Commit e8a969dd authored by kinuko@chromium.org's avatar kinuko@chromium.org

2010-09-01 Kinuko Yasuda <kinuko@google.com>

        Reviewed by Adam Barth.

        [V8] Support readonly Date attribute
        https://bugs.webkit.org/show_bug.cgi?id=43943

        Adds Date to non_wrapper_types in CodeGeneratorV8.pm.

        New tests will be added for Metadata when we add FileSystem implementation.

        * bindings/scripts/CodeGeneratorV8.pm:
        * fileapi/Metadata.h:
        * fileapi/Metadata.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9c754773
2010-09-01 Kinuko Yasuda <kinuko@google.com>
Reviewed by Adam Barth.
[V8] Support readonly Date attribute
https://bugs.webkit.org/show_bug.cgi?id=43943
Adds Date to non_wrapper_types in CodeGeneratorV8.pm.
New tests will be added for Metadata when we add FileSystem implementation.
* bindings/scripts/CodeGeneratorV8.pm:
* fileapi/Metadata.h:
* fileapi/Metadata.idl:
2010-09-01 Mihai Parparita <mihaip@chromium.org>
Reviewed by Chris Marrin.
......@@ -3059,7 +3059,8 @@ my %non_wrapper_types = (
'EventTarget' => 1,
'NodeFilter' => 1,
'EventListener' => 1,
'IDBKey' => 1
'IDBKey' => 1,
'Date' => 1
);
......
......@@ -43,7 +43,9 @@ public:
{
return adoptRef(new Metadata(modificationTime));
}
double modificationTime() const { return m_modificationTime; }
// Needs to return epoch time in milliseconds for Date.
double modificationTime() const { return m_modificationTime * 1000.0; }
private:
Metadata(double modificationTime)
......
......@@ -32,6 +32,6 @@ module storage {
interface [
Conditional=FILE_SYSTEM
] Metadata {
readonly attribute double modificationTime;
readonly attribute Date modificationTime;
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment