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

Unified Diff: third_party/WebKit/public/web/WebMeaningfulLayout.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: third_party/WebKit/public/web/WebMeaningfulLayout.h
diff --git a/third_party/WebKit/public/web/WebMeaningfulLayout.h b/third_party/WebKit/public/web/WebMeaningfulLayout.h
new file mode 100644
index 0000000000000000000000000000000000000000..9658aec0b4245b03edf014fa8bcbdebdb4fe920b
--- /dev/null
+++ b/third_party/WebKit/public/web/WebMeaningfulLayout.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebMeaningfulLayout_h
+#define WebMeaningfulLayout_h
+
+namespace blink {
+
+enum WebMeaningfulLayout {
+ // Signifies that 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.
+ VisuallyNonEmpty,
+ // First layout of a frame immediately after the parsing finished.
+ FinishedParsing,
+ // First layout of a frame immediately after the loading finished.
+ FinishedLoading
+};
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698