Componentize the IDR_LOCATION_HTTP resource
[chromium-blink-merge.git] / components / web_modal / test_web_contents_modal_dialog_manager_delegate.cc
blob53c94d2caf9779fc10b36bfbd07a04f568b22af7
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"
7 namespace web_modal {
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,
17 bool blocked) {
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