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

Unified Diff: public/web/WebFrameWidget.h

Issue 955143002: Add setVisibilityState API to WebFrameWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed Created 5 years, 10 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
« Source/web/WebFrameWidgetImpl.cpp ('K') | « Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameWidget.h
diff --git a/public/web/WebFrameWidget.h b/public/web/WebFrameWidget.h
index 3fa72a339e0e914cfe4f7a4da9a99b37e0da3b1d..55a32d8f12dc93889bfc6e00959fc23c00a0a842 100644
--- a/public/web/WebFrameWidget.h
+++ b/public/web/WebFrameWidget.h
@@ -32,6 +32,7 @@
#define WebFrameWidget_h
#include "../platform/WebCommon.h"
+#include "../platform/WebPageVisibilityState.h"
#include "public/web/WebWidget.h"
namespace blink {
@@ -42,6 +43,12 @@ class WebWidgetClient;
class WebFrameWidget : public WebWidget {
public:
BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*);
+
+ // Set frame-level visibility state.
+ // We still track page-level visibility, but additionally we need to notify a WebFrameWidget
+ // when its owning RenderWidget receives a Show or Hide directive, so that it knows whether
+ // it needs to draw or not.
+ virtual void setVisibilityState(WebPageVisibilityState visibilityState, bool isInitialState) { }
};
} // namespace blink
« Source/web/WebFrameWidgetImpl.cpp ('K') | « Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698