Show for binary files the file size increase/decrease as percentage

Change-Id: I2003eb427141ed4bf72254659210f1c7b5e7dcdf
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2015-10-28 14:22:36 +01:00
parent 971a5f5aeb
commit 240d3c6fa4
7 changed files with 61 additions and 3 deletions

View File

@@ -34,6 +34,11 @@ public class FileInfo extends JavaScriptObject {
// JSNI methods cannot have 'long' as a parameter type or a return type and
// it's suggested to use double in this case:
// http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#important
public final long size() {
return (long)_size();
}
private final native double _size() /*-{ return this.size || 0; }-*/;
public final long sizeDelta() {
return (long)_sizeDelta();
}