Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: Source/WebKit/chromium/src/WebDOMProgressEvent.cpp

Issue 14773025: Create ResourceProgressEvent, expose as Chromium API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: merge Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
diff --git a/public/platform/WebFileSystemType.h b/Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
similarity index 78%
copy from public/platform/WebFileSystemType.h
copy to Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
index 4dd06d1627861979ef7f28b14bd5f11eb97e0440..c3eeeda7534159283a4aaa3bb516b120b65b9320 100644
--- a/public/platform/WebFileSystemType.h
+++ b/Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
@@ -28,22 +28,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebFileSystemType_h
-#define WebFileSystemType_h
+#include "config.h"
+#include "WebDOMProgressEvent.h"
-namespace WebKit {
+#include "core/dom/ProgressEvent.h"
+#include <public/WebString.h>
-enum WebFileSystemType {
- WebFileSystemTypeTemporary,
- WebFileSystemTypePersistent,
+using namespace WebCore;
- // Indicates an isolated filesystem which only exposes a set of files.
- WebFileSystemTypeIsolated,
+namespace WebKit {
- // Indicates a non-sandboxed filesystem.
- WebFileSystemTypeExternal,
-};
+WebDOMProgressEvent::WebDOMProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total)
+ : WebDOMEvent(ProgressEvent::create(type, lengthIsComputable, loaded, total))
+{
+ ASSERT(m_private.get());
+ ASSERT(isProgressEvent());
+}
} // namespace WebKit
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698