This source file includes following definitions.
- web_contents_modal_dialog_host_
- SetWebContentsBlocked
- GetWebContentsModalDialogHost
- IsWebContentsVisible
#include "components/web_modal/test_web_contents_modal_dialog_manager_delegate.h"
namespace web_modal {
TestWebContentsModalDialogManagerDelegate::
TestWebContentsModalDialogManagerDelegate()
: web_contents_visible_(true),
web_contents_blocked_(false),
web_contents_modal_dialog_host_(NULL) {}
void TestWebContentsModalDialogManagerDelegate::SetWebContentsBlocked(
content::WebContents* web_contents,
bool blocked) {
web_contents_blocked_ = blocked;
}
WebContentsModalDialogHost* TestWebContentsModalDialogManagerDelegate::
GetWebContentsModalDialogHost() {
return web_contents_modal_dialog_host_;
}
bool TestWebContentsModalDialogManagerDelegate::IsWebContentsVisible(
content::WebContents* web_contents) {
return web_contents_visible_;
}
}