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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 98523003: Implement "presentation" feature for window.open() Base URL: https://github.com/drott/cameo.git@presentationWindowSquashed
Patch Set: Created 7 years 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/fullscreen/fullscreen_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 3c4c671ea228847037d27650d62c5a6a1ad84e8d..bc049b8a0af9f919aa700815def4e40b4548b2af 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -182,6 +182,13 @@ Browser* GetBrowserForDisposition(chrome::NavigateParams* params) {
// Make or find an incognito window.
return GetOrCreateBrowser(profile->GetOffTheRecordProfile(),
params->host_desktop_type);
+ case PRESENTATION_WINDOW: {
+ Browser::CreateParams createParams(profile, params->host_desktop_type);
+ createParams.initial_bounds = params->window_bounds;
+ Browser* browser = new Browser(createParams);
+ browser->RequestPresentationMode();
+ return browser;
+ }
// The following types all result in no navigation.
case SUPPRESS_OPEN:
case SAVE_TO_DISK:
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/fullscreen/fullscreen_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698