mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
LibWeb+WebContent+WebDriver: Implement Accept Alert
This commit is contained in:
parent
7cf2feb047
commit
3e7d633954
9 changed files with 45 additions and 0 deletions
|
@ -320,6 +320,19 @@ void PageHost::dismiss_dialog()
|
|||
}
|
||||
}
|
||||
|
||||
void PageHost::accept_dialog()
|
||||
{
|
||||
switch (m_pending_dialog) {
|
||||
case PendingDialog::None:
|
||||
break;
|
||||
case PendingDialog::Alert:
|
||||
case PendingDialog::Confirm:
|
||||
case PendingDialog::Prompt:
|
||||
m_client.async_did_request_accept_dialog();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void PageHost::page_did_change_favicon(Gfx::Bitmap const& favicon)
|
||||
{
|
||||
m_client.async_did_change_favicon(favicon.to_shareable_bitmap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue