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

Unified Diff: content/shell/shell.h

Issue 9836127: Content shell: Javascript dialogs, first pass, just Mac for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/shell/shell.h
diff --git a/content/shell/shell.h b/content/shell/shell.h
index 93499114e162ee04a76f7aed5fb6dd8e147e4bc5..0beb6dd7e53243dc750ae8b8d0af16500ad1ab50 100644
--- a/content/shell/shell.h
+++ b/content/shell/shell.h
@@ -27,7 +27,9 @@ class GURL;
class WebContents;
namespace content {
+
class BrowserContext;
+class ShellJavaScriptDialogCreator;
class SiteInstance;
// This represents one window of the Content Shell, i.e. all the UI including
@@ -115,6 +117,7 @@ class Shell : public WebContentsDelegate,
const GURL& target_url,
WebContents* new_contents) OVERRIDE;
virtual void DidNavigateMainFramePostCommit(WebContents* tab) OVERRIDE;
+ virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator() OVERRIDE;
#if defined(OS_MACOSX)
virtual void HandleKeyboardEvent(
const NativeWebKeyboardEvent& event) OVERRIDE;
@@ -143,6 +146,8 @@ class Shell : public WebContentsDelegate,
GObject*, guint, GdkModifierType);
#endif
+ scoped_ptr<ShellJavaScriptDialogCreator> dialog_creator_;
+
scoped_ptr<WebContents> web_contents_;
// layoutTestController related variables.

Powered by Google App Engine
This is Rietveld 408576698