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

Unified Diff: public/web/WebWindowFeatures.h

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 | « public/web/WebView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWindowFeatures.h
diff --git a/public/web/WebWindowFeatures.h b/public/web/WebWindowFeatures.h
index 7bd7ce596639dcd50c1ea7d85f6fdffdea0be69c..db794a47588f60fd31539a44601a7519fb04b950 100644
--- a/public/web/WebWindowFeatures.h
+++ b/public/web/WebWindowFeatures.h
@@ -100,6 +100,30 @@ struct WebWindowFeatures {
, additionalFeatures(f.additionalFeatures)
{
}
+
+ operator WebCore::WindowFeatures() const
+ {
+ WebCore::WindowFeatures result;
+ result.x = x;
+ result.xSet = xSet;
+ result.y = y;
+ result.ySet = ySet;
+ result.width = width;
+ result.widthSet = widthSet;
+ result.height = height;
+ result.heightSet = heightSet;
+ result.menuBarVisible = menuBarVisible;
+ result.statusBarVisible = statusBarVisible;
+ result.toolBarVisible = toolBarVisible;
+ result.locationBarVisible = locationBarVisible;
+ result.scrollbarsVisible = scrollbarsVisible;
+ result.resizable = resizable;
+ result.fullscreen = fullscreen;
+ result.dialog = dialog;
+ for (size_t i = 0; i < additionalFeatures.size(); ++i)
+ result.additionalFeatures.append(additionalFeatures[i]);
+ return result;
+ }
#endif
};
« no previous file with comments | « public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698