feat: add WebFrameMain.visibilityState (#28706)
* feat: add WebFrameMain.visibilityState * docs: mention other page visibility APIs * test: delay visibilityState check after hiding * test: add waitForTrue to avoid flaky visibilityState test * refactor: waitForTrue -> waitUntil
This commit is contained in:
parent
93311c8686
commit
43d27cc4d1
5 changed files with 98 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "gin/wrappable.h"
|
||||
#include "shell/common/gin_helper/constructible.h"
|
||||
#include "shell/common/gin_helper/pinnable.h"
|
||||
#include "third_party/blink/public/mojom/page/page_visibility_state.mojom-forward.h"
|
||||
|
||||
class GURL;
|
||||
|
||||
|
@ -95,6 +96,7 @@ class WebFrameMain : public gin::Wrappable<WebFrameMain>,
|
|||
int ProcessID() const;
|
||||
int RoutingID() const;
|
||||
GURL URL() const;
|
||||
blink::mojom::PageVisibilityState VisibilityState() const;
|
||||
|
||||
content::RenderFrameHost* Top() const;
|
||||
content::RenderFrameHost* Parent() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue