| Index: public/web/WebFrameWidget.h
|
| diff --git a/public/web/WebFrameWidget.h b/public/web/WebFrameWidget.h
|
| index 3fa72a339e0e914cfe4f7a4da9a99b37e0da3b1d..0f8bbbeb01b4a24dadbef1623c58500e237e9f10 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,11 @@ class WebWidgetClient;
|
| class WebFrameWidget : public WebWidget {
|
| public:
|
| BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*);
|
| +
|
| + // 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
|
|
|