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

Unified Diff: third_party/WebKit/Source/core/loader/ImageLoader.h

Issue 2247073006: Add loadend event when finishing loading image Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix issue of layoutTest Created 4 years, 4 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: third_party/WebKit/Source/core/loader/ImageLoader.h
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.h b/third_party/WebKit/Source/core/loader/ImageLoader.h
index 4898446af2cdcee88aef2c42cc7d63b547deb88d..2110577adf680924ebc98ea7661968e160cad8b1 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.h
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.h
@@ -118,12 +118,15 @@ private:
void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior, const KURL&, ReferrerPolicy = ReferrerPolicyDefault);
virtual void dispatchLoadEvent() = 0;
+ virtual void dispatchLoadendEvent() {};
+ virtual void dispatchLoadendEventSoon() {};
virtual void noImageResourceToLoad() { }
void updatedHasPendingEvent();
void dispatchPendingLoadEvent();
void dispatchPendingErrorEvent();
+ void dispatchPendingLoadendEvent();
LayoutImageResource* layoutImageResource();
void updateLayoutObject();
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageLoader.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698