W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

FileReader question about ProgressEvent

From: Jian Li <jianli@chromium.org>
Date: Tue, 20 Apr 2010 15:51:17 -0700
Message-ID: <j2ta95818c31004201551m90b22cf5lbcc4072cd419057@mail.gmail.com>
To: Web Applications Working Group WG <public-webapps@w3.org>
According to the spec, we will dispatch a progress event for a read method.
But per the "Progress Events 1.0" spec, the attributes "loaded" and "total"
are defined  as "unsigned long".
   interface ProgressEvent : events::Event {
        ...
        readonly attribute unsigned long   loaded;
        readonly attribute unsigned long   total;
        ...

The type "unsigned long" is not enough to represent the file size. Do we
want to update the Progress Event spec to use "unsigned long long"? Or we
could limit the FileReader to only read from the file with size less than
MAX_UINT.


Jian
Received on Tuesday, 20 April 2010 22:51:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:07 UTC