Index: content/public/renderer/render_frame_observer.h |
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h |
index 7b4eeb795b5d20bf8316a7262b8434f64766ad45..d59d41d26ed24d8d349424c5a15ea6782eb47f35 100644 |
--- a/content/public/renderer/render_frame_observer.h |
+++ b/content/public/renderer/render_frame_observer.h |
@@ -12,6 +12,7 @@ |
#include "ipc/ipc_listener.h" |
#include "ipc/ipc_sender.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
+#include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
#include "v8/include/v8.h" |
namespace blink { |
@@ -96,6 +97,13 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener, |
int32 line_number, |
int32 severity_level) {} |
+ // Called when an interesting (from document lifecycle perspective), |
+ // compositor-driven layout had happened. This is a reasonable hook to use |
+ // to inspect the document and layout information, since it is in a clean |
+ // state and you won't accidentally force new layouts. |
+ // The interestingness of layouts is explained in WebMeaningfulLayout.h. |
+ virtual void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) {} |
+ |
// Called when a compositor frame has committed. |
virtual void DidCommitCompositorFrame() {} |