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

Unified Diff: public/web/WebWidgetClient.h

Issue 1318283003: Organize Layout/Paint-related hooks (blink-side). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « public/web/WebViewClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidgetClient.h
diff --git a/public/web/WebWidgetClient.h b/public/web/WebWidgetClient.h
index 93ae02ff21e135a8da3b92f008320e1c0322047d..c1ce416eb6c0355249171c581bc26725f8459619 100644
--- a/public/web/WebWidgetClient.h
+++ b/public/web/WebWidgetClient.h
@@ -78,6 +78,19 @@ public:
// Called when a call to WebWidget::animate is required
virtual void scheduleAnimation() { }
+ // Called when one of the following things were involved during the layout:
+ // * > 200 text characters
+ // * > 1024 image pixels
+ // * a plugin
+ // * a canvas
+ // An approximation for first layout that resulted in pixels on screen.
+ // Not the best heuristic, and we should replace it with something better.
+ virtual void didFirstVisuallyNonEmptyLayout() { }
+
+ // The frame's document first layout immediately after the parsing finished.
+ // Another way to put it: first frame produced after DOMContentLoaded was dispatched.
+ virtual void didFirstLayoutAfterFinishedParsing() { }
+
// Called when the widget acquires or loses focus, respectively.
virtual void didFocus() { }
virtual void didBlur() { }
« no previous file with comments | « public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698