Chromium Code Reviews| 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. |
|
dcheng
2015/02/26 22:40:30
This comment isn't entirely accurate. I'd probably
dcheng
2015/02/27 16:28:49
I meant line 47 (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 |