Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/browser/ui/chrome_modal_dialog_manager_delegate.cc

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-gtk-build Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698