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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebView.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 , statusBarVisible(f.statusBarVisible) 93 , statusBarVisible(f.statusBarVisible)
94 , toolBarVisible(f.toolBarVisible) 94 , toolBarVisible(f.toolBarVisible)
95 , locationBarVisible(f.locationBarVisible) 95 , locationBarVisible(f.locationBarVisible)
96 , scrollbarsVisible(f.scrollbarsVisible) 96 , scrollbarsVisible(f.scrollbarsVisible)
97 , resizable(f.resizable) 97 , resizable(f.resizable)
98 , fullscreen(f.fullscreen) 98 , fullscreen(f.fullscreen)
99 , dialog(f.dialog) 99 , dialog(f.dialog)
100 , additionalFeatures(f.additionalFeatures) 100 , additionalFeatures(f.additionalFeatures)
101 { 101 {
102 } 102 }
103
104 operator WebCore::WindowFeatures() const
105 {
106 WebCore::WindowFeatures result;
107 result.x = x;
108 result.xSet = xSet;
109 result.y = y;
110 result.ySet = ySet;
111 result.width = width;
112 result.widthSet = widthSet;
113 result.height = height;
114 result.heightSet = heightSet;
115 result.menuBarVisible = menuBarVisible;
116 result.statusBarVisible = statusBarVisible;
117 result.toolBarVisible = toolBarVisible;
118 result.locationBarVisible = locationBarVisible;
119 result.scrollbarsVisible = scrollbarsVisible;
120 result.resizable = resizable;
121 result.fullscreen = fullscreen;
122 result.dialog = dialog;
123 for (size_t i = 0; i < additionalFeatures.size(); ++i)
124 result.additionalFeatures.append(additionalFeatures[i]);
125 return result;
126 }
103 #endif 127 #endif
104 }; 128 };
105 129
106 } // namespace WebKit 130 } // namespace WebKit
107 131
108 #endif 132 #endif
OLDNEW
« 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