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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMedia.h

Issue 1370723002: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 5 years, 1 month 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/layout/LayoutMedia.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutMedia.h b/third_party/WebKit/Source/core/layout/LayoutMedia.h
index 819cf2fa6ff5c6af53cba3b3a8630aedafdec162..5f0c7ca0315a897694957202a32c2df7d723f7fa 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMedia.h
+++ b/third_party/WebKit/Source/core/layout/LayoutMedia.h
@@ -51,7 +51,20 @@ public:
const char* name() const override { return "LayoutMedia"; }
+ // Temporary callback for crbug.com/587345,402044
+ void notifyPositionMayHaveChanged(const IntRect&);
+
+ // Change whether we want or don't want to receive position change
+ // notifications. This will cause us to start / stop receiving change
+ // notifications if possible.
+ // Temporary method for crbug.com/587345,402044
+ void setRequestPositionUpdates(bool);
+
protected:
+ // Temporary overrides for crbug.com/587345,402044
+ void willBeDestroyed() override;
+ void insertedIntoTree() override;
+
void layout() override;
bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectMedia || LayoutImage::isOfType(type); }
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698