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

Unified Diff: content/public/renderer/render_frame_observer.h

Issue 1398823004: Switch the page-capturing machinery to use the new hooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: 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() {}

Powered by Google App Engine
This is Rietveld 408576698