OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 "chrome/browser/ui/chrome_modal_dialog_manager_delegate.h" |
| 6 |
| 7 #include "chrome/common/render_messages.h" |
| 8 #include "content/public/browser/render_view_host.h" |
| 9 #include "content/public/browser/web_contents.h" |
| 10 |
| 11 ChromeModalDialogManagerDelegate::ChromeModalDialogManagerDelegate() { |
| 12 } |
| 13 |
| 14 ChromeModalDialogManagerDelegate::~ChromeModalDialogManagerDelegate() { |
| 15 } |
| 16 |
| 17 void ChromeModalDialogManagerDelegate::SetWebContentsBlocked( |
| 18 content::WebContents* web_contents, |
| 19 bool blocked) { |
| 20 // RenderViewHost may be NULL during shutdown. |
| 21 content::RenderViewHost* host = web_contents->GetRenderViewHost(); |
| 22 if (host) { |
| 23 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( |
| 24 host->GetRoutingID(), blocked)); |
| 25 } |
| 26 } |
| 27 |
OLD | NEW |