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.
4
5#include "components/web_modal/test_web_contents_modal_dialog_manager_delegate.h"
6
7namespace web_modal {
8
9TestWebContentsModalDialogManagerDelegate::
10    TestWebContentsModalDialogManagerDelegate()
11    : web_contents_visible_(true),
12      web_contents_blocked_(false),
13      web_contents_modal_dialog_host_(NULL) {}
14
15void TestWebContentsModalDialogManagerDelegate::SetWebContentsBlocked(
16    content::WebContents* web_contents,
17    bool blocked) {
18  web_contents_blocked_ = blocked;
19}
20
21WebContentsModalDialogHost* TestWebContentsModalDialogManagerDelegate::
22    GetWebContentsModalDialogHost() {
23  return web_contents_modal_dialog_host_;
24}
25
26bool TestWebContentsModalDialogManagerDelegate::IsWebContentsVisible(
27  content::WebContents* web_contents) {
28  return web_contents_visible_;
29}
30
31}  // namespace web_modal
32