1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/web_modal/test_web_contents_modal_dialog_manager_delegate.h"
9 TestWebContentsModalDialogManagerDelegate::
10 TestWebContentsModalDialogManagerDelegate()
11 : web_contents_visible_(true),
12 web_contents_blocked_(false),
13 web_contents_modal_dialog_host_(NULL
) {}
15 void TestWebContentsModalDialogManagerDelegate::SetWebContentsBlocked(
16 content::WebContents
* web_contents
,
18 web_contents_blocked_
= blocked
;
21 WebContentsModalDialogHost
* TestWebContentsModalDialogManagerDelegate::
22 GetWebContentsModalDialogHost() {
23 return web_contents_modal_dialog_host_
;
26 bool TestWebContentsModalDialogManagerDelegate::IsWebContentsVisible(
27 content::WebContents
* web_contents
) {
28 return web_contents_visible_
;
31 } // namespace web_modal