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

Unified Diff: Source/core/page/CreateWindow.cpp

Issue 19804008: Add a Blink API to set window features on a WebView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | « Source/core/page/Chrome.cpp ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/CreateWindow.cpp
diff --git a/Source/core/page/CreateWindow.cpp b/Source/core/page/CreateWindow.cpp
index 206ad49a35e4d4cf1c9b5dac06b9b86b7bc08a5e..aa70c85c8e7ff8a95c350134ba1fdca9cd77e13d 100644
--- a/Source/core/page/CreateWindow.cpp
+++ b/Source/core/page/CreateWindow.cpp
@@ -93,11 +93,7 @@ static Frame* createWindow(Frame* openerFrame, Frame* lookupFrame, const FrameLo
if (request.frameName() != "_blank")
frame->tree()->setName(request.frameName());
- page->chrome().setToolbarsVisible(features.toolBarVisible || features.locationBarVisible);
- page->chrome().setStatusbarVisible(features.statusBarVisible);
- page->chrome().setScrollbarsVisible(features.scrollbarsVisible);
- page->chrome().setMenubarVisible(features.menuBarVisible);
- page->chrome().setResizable(features.resizable);
+ page->chrome().setWindowFeatures(features);
// 'x' and 'y' specify the location of the window, while 'width' and 'height'
// specify the size of the viewport. We can only resize the window, so adjust
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698