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

Unified Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now a tc delegate Created 9 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: content/browser/tab_contents/tab_contents_delegate.h
diff --git a/content/browser/tab_contents/tab_contents_delegate.h b/content/browser/tab_contents/tab_contents_delegate.h
index 16d4e7a2c31c111738dd54a10bdd38d5357dd203..0645128b9add09ea15037d25547eb3260f806efb 100644
--- a/content/browser/tab_contents/tab_contents_delegate.h
+++ b/content/browser/tab_contents/tab_contents_delegate.h
@@ -15,6 +15,10 @@
#include "ui/gfx/native_widget_types.h"
#include "webkit/glue/window_open_disposition.h"
+namespace content {
+class JavaScriptDialogCreator;
+}
+
namespace gfx {
class Point;
class Rect;
@@ -299,6 +303,11 @@ class TabContentsDelegate {
TabContents* tab,
const MainFrameCommitDetails& details);
+ // Returns a pointer to a service to create JavaScript dialogs. The default
+ // pointer returned is to a stub service that marks all dialogs as suppressed
+ // and displays nothing.
+ virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator();
+
protected:
virtual ~TabContentsDelegate();
};

Powered by Google App Engine
This is Rietveld 408576698