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

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: pre-review cleanup 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/Source/Platform/chromium/public/WebExternalTextureMailbox.h b/Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
similarity index 79%
copy from Source/Platform/chromium/public/WebExternalTextureMailbox.h
copy to Source/WebKit/chromium/src/WebDOMProgressEvent.cpp
index 785e9181ae0c05a2448245a4d39e45452a63bd24..60289fdc40c4fc4e13051ec25b93fc9035c17f70 100644
--- a/Source/Platform/chromium/public/WebExternalTextureMailbox.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 WebExternalTextureMailbox_h
-#define WebExternalTextureMailbox_h
+#include "config.h"
+#include "WebDOMProgressEvent.h"
-namespace WebKit {
+#include "core/dom/ProgressEvent.h"
+#include <public/WebString.h>
+
+using namespace WebCore;
-struct WebExternalTextureMailbox {
- signed char name[64];
- unsigned syncPoint;
+namespace WebKit {
- WebExternalTextureMailbox()
- : syncPoint(0)
- {
- memset(name, 0, sizeof(name));
- }
-};
+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);
+ ASSERT(isProgressEvent());
+}
} // namespace WebKit
-
-#endif // WebExternalTextureMailbox_h

Powered by Google App Engine
This is Rietveld 408576698