| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #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_; |
| } |
| |
| } // namespace web_modal |