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

Unified Diff: public/web/WebPluginContainer.h

Issue 1157943002: Add a setNeedsLayout method to WebPluginContainer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPluginContainer.h
diff --git a/public/web/WebPluginContainer.h b/public/web/WebPluginContainer.h
index 93026d0a25e5be5240fb9f85dddefeb4e5bfe268..aaaaef4c63e6295f0179b8f36901319a090092d2 100644
--- a/public/web/WebPluginContainer.h
+++ b/public/web/WebPluginContainer.h
@@ -63,6 +63,12 @@ public:
virtual void invalidateRect(const WebRect&) = 0;
virtual void scrollRect(const WebRect&) = 0;
+ // Causes the container to be marked as needing layout, which in turn will cause
+ // layoutIfNeeded() to be called on any contained WebPlugin during the container's
+ // web view's lifecycle update, and in particular before calling paint() on the
+ // WebPlugin.
+ virtual void setNeedsLayout() = 0;
+
// Causes the container to report its current geometry via
// WebPlugin::updateGeometry.
virtual void reportGeometry() = 0;
« no previous file with comments | « Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698