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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/chrome_modal_dialog_manager_delegate.cc
diff --git a/chrome/browser/ui/chrome_modal_dialog_manager_delegate.cc b/chrome/browser/ui/chrome_modal_dialog_manager_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..66ae3c69ad70ca6afea2aa4cac4157dd888dae25
--- /dev/null
+++ b/chrome/browser/ui/chrome_modal_dialog_manager_delegate.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 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 "chrome/browser/ui/chrome_modal_dialog_manager_delegate.h"
+
+#include "chrome/common/render_messages.h"
+#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/web_contents.h"
+
+ChromeModalDialogManagerDelegate::ChromeModalDialogManagerDelegate() {
+}
+
+ChromeModalDialogManagerDelegate::~ChromeModalDialogManagerDelegate() {
+}
+
+void ChromeModalDialogManagerDelegate::SetWebContentsBlocked(
+ content::WebContents* web_contents,
+ bool blocked) {
+ // RenderViewHost may be NULL during shutdown.
+ content::RenderViewHost* host = web_contents->GetRenderViewHost();
+ if (host) {
+ host->Send(new ChromeViewMsg_SetVisuallyDeemphasized(
+ host->GetRoutingID(), blocked));
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698