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

Unified Diff: components/web_modal/web_contents_modal_dialog_manager_delegate.cc

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land 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: components/web_modal/web_contents_modal_dialog_manager_delegate.cc
diff --git a/chrome/browser/ui/web_contents_modal_dialog_manager_delegate.cc b/components/web_modal/web_contents_modal_dialog_manager_delegate.cc
similarity index 67%
rename from chrome/browser/ui/web_contents_modal_dialog_manager_delegate.cc
rename to components/web_modal/web_contents_modal_dialog_manager_delegate.cc
index a3cdc12cd31bffd388f9db5fbf91fcc96c571b71..25a777cf4f56f9e54c1037fd393f7a3ff9823e35 100644
--- a/chrome/browser/ui/web_contents_modal_dialog_manager_delegate.cc
+++ b/components/web_modal/web_contents_modal_dialog_manager_delegate.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h"
+#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include <string.h>
+namespace web_modal {
+
void WebContentsModalDialogManagerDelegate::SetWebContentsBlocked(
content::WebContents* web_contents, bool blocked) {
}
@@ -15,5 +17,12 @@ WebContentsModalDialogHost*
return NULL;
}
+bool WebContentsModalDialogManagerDelegate::IsWebContentsVisible(
+ content::WebContents* web_contents) {
+ return true;
+}
+
WebContentsModalDialogManagerDelegate::~WebContentsModalDialogManagerDelegate(
) {}
+
+} // namespace web_modal

Powered by Google App Engine
This is Rietveld 408576698