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

Unified Diff: content/shell/shell_application_mac.mm

Issue 9965064: Mac content shell: File > New makes a new browser window. (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
« no previous file with comments | « content/shell/shell_application_mac.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_application_mac.mm
diff --git a/content/shell/shell_application_mac.mm b/content/shell/shell_application_mac.mm
index c8a6163d3d3ffc4495fae4d35d24ca501f8a5e36..3afb7a6724822b2c8ca1a21ca7eb59b84c252065 100644
--- a/content/shell/shell_application_mac.mm
+++ b/content/shell/shell_application_mac.mm
@@ -5,6 +5,9 @@
#include "content/shell/shell_application_mac.h"
#include "base/auto_reset.h"
+#include "content/shell/shell.h"
+#include "content/shell/shell_browser_context.h"
+#include "googleurl/src/gurl.h"
@implementation ShellCrApplication
@@ -21,4 +24,12 @@
handlingSendEvent_ = handlingSendEvent;
}
+- (IBAction)newDocument:(id)sender {
+ content::Shell::CreateNewWindow(content::ShellBrowserContext::GetInstance(),
+ GURL("about:blank"),
+ NULL,
+ MSG_ROUTING_NONE,
+ NULL);
+}
+
@end
« no previous file with comments | « content/shell/shell_application_mac.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698