Skip to content

Commit

Permalink
autoupdated protocol.json & generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Kulhan committed Aug 30, 2024
1 parent af3eff9 commit 71ddee1
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 1 deletion.
15 changes: 15 additions & 0 deletions gen-src/ChromeDevtoolsProtocol/Domain/PageDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use ChromeDevtoolsProtocol\Model\Page\FrameScheduledNavigationEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameStartedLoadingEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameStoppedLoadingEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameSubtreeWillBeDetachedEvent;
use ChromeDevtoolsProtocol\Model\Page\GenerateTestReportRequest;
use ChromeDevtoolsProtocol\Model\Page\GetAdScriptIdRequest;
use ChromeDevtoolsProtocol\Model\Page\GetAdScriptIdResponse;
Expand Down Expand Up @@ -742,6 +743,20 @@ public function awaitFrameStoppedLoading(ContextInterface $ctx): FrameStoppedLoa
}


public function addFrameSubtreeWillBeDetachedListener(callable $listener): SubscriptionInterface
{
return $this->internalClient->addListener('Page.frameSubtreeWillBeDetached', function ($event) use ($listener) {
return $listener(FrameSubtreeWillBeDetachedEvent::fromJson($event));
});
}


public function awaitFrameSubtreeWillBeDetached(ContextInterface $ctx): FrameSubtreeWillBeDetachedEvent
{
return FrameSubtreeWillBeDetachedEvent::fromJson($this->internalClient->awaitEvent($ctx, 'Page.frameSubtreeWillBeDetached'));
}


public function addInterstitialHiddenListener(callable $listener): SubscriptionInterface
{
return $this->internalClient->addListener('Page.interstitialHidden', function ($event) use ($listener) {
Expand Down
25 changes: 25 additions & 0 deletions gen-src/ChromeDevtoolsProtocol/Domain/PageDomainInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use ChromeDevtoolsProtocol\Model\Page\FrameScheduledNavigationEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameStartedLoadingEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameStoppedLoadingEvent;
use ChromeDevtoolsProtocol\Model\Page\FrameSubtreeWillBeDetachedEvent;
use ChromeDevtoolsProtocol\Model\Page\GenerateTestReportRequest;
use ChromeDevtoolsProtocol\Model\Page\GetAdScriptIdRequest;
use ChromeDevtoolsProtocol\Model\Page\GetAdScriptIdResponse;
Expand Down Expand Up @@ -1145,6 +1146,30 @@ public function addFrameStoppedLoadingListener(callable $listener): Subscription
public function awaitFrameStoppedLoading(ContextInterface $ctx): FrameStoppedLoadingEvent;


/**
* Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.
*
* Listener will be called whenever event Page.frameSubtreeWillBeDetached is fired.
*
* @param callable $listener
*
* @return SubscriptionInterface
*/
public function addFrameSubtreeWillBeDetachedListener(callable $listener): SubscriptionInterface;


/**
* Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.
*
* Method will block until first Page.frameSubtreeWillBeDetached event is fired.
*
* @param ContextInterface $ctx
*
* @return FrameSubtreeWillBeDetachedEvent
*/
public function awaitFrameSubtreeWillBeDetached(ContextInterface $ctx): FrameSubtreeWillBeDetachedEvent;


/**
* Fired when interstitial page was hidden
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

namespace ChromeDevtoolsProtocol\Model\Page;

/**
* Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.
*
* @generated This file has been auto-generated, do not edit.
*
* @author Jakub Kulhan <[email protected]>
*/
final class FrameSubtreeWillBeDetachedEvent implements \JsonSerializable
{
/**
* Id of the frame that is the root of the subtree that will be detached.
*
* @var string
*/
public $frameId;


/**
* @param object $data
* @return static
*/
public static function fromJson($data)
{
$instance = new static();
if (isset($data->frameId)) {
$instance->frameId = (string)$data->frameId;
}
return $instance;
}


public function jsonSerialize()
{
$data = new \stdClass();
if ($this->frameId !== null) {
$data->frameId = $this->frameId;
}
return $data;
}
}
12 changes: 12 additions & 0 deletions protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -23103,6 +23103,18 @@
}
]
},
{
"name": "frameSubtreeWillBeDetached",
"description": "Fired before frame subtree is detached. Emitted before any frame of the subtree is actually detached.",
"experimental": true,
"parameters": [
{
"name": "frameId",
"description": "Id of the frame that is the root of the subtree that will be detached.",
"$ref": "FrameId"
}
]
},
{
"name": "interstitialHidden",
"description": "Fired when interstitial page was hidden"
Expand Down
2 changes: 1 addition & 1 deletion protocol.json.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
90d3b21228c4f4e0747b992fcd208c9f protocol.json
5305c2779eaa47af85fa8336152d079d protocol.json

0 comments on commit 71ddee1

Please sign in to comment.