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

Unified Diff: public/web/WebFrameOwnerProperties.h

Issue 1319863006: (blink) Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update. Created 5 years, 4 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
« public/BUILD.gn ('K') | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameOwnerProperties.h
diff --git a/public/platform/WebImageGenerator.h b/public/web/WebFrameOwnerProperties.h
similarity index 69%
copy from public/platform/WebImageGenerator.h
copy to public/web/WebFrameOwnerProperties.h
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..2a04263ee2922254cff457aa6d0aab45b992404e 100644
--- a/public/platform/WebImageGenerator.h
+++ b/public/web/WebFrameOwnerProperties.h
@@ -28,19 +28,35 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebImageGenerator_h
-#define WebImageGenerator_h
+#ifndef WebFrameOwnerProperties_h
+#define WebFrameOwnerProperties_h
-#include "WebCommon.h"
+namespace blink {
-class SkData;
-class SkImageGenerator;
+struct WebFrameOwnerProperties {
+ enum ScrollingMode {
dcheng 2015/09/02 06:38:26 enum class.
lazyboy 2015/09/02 16:56:30 Done.
+ ScrollingModeAuto,
+ ScrollingModeAlwaysOff,
+ ScrollingModeAlwaysOn,
+ ScrollingModeLast = ScrollingModeAlwaysOn
+ };
-namespace blink {
+ ScrollingMode scrollingMode;
+ int marginWidth;
+ int marginHeight;
-class BLINK_EXPORT WebImageGenerator {
-public:
- static SkImageGenerator* create(SkData*);
+ WebFrameOwnerProperties()
+ : scrollingMode(ScrollingModeAuto)
+ , marginWidth(-1)
+ , marginHeight(-1)
+ {
+ }
+ WebFrameOwnerProperties(ScrollingMode scrollingMode, int marginWidth, int marginHeight)
+ : scrollingMode(scrollingMode)
+ , marginWidth(marginWidth)
+ , marginHeight(marginHeight)
+ {
+ }
};
} // namespace blink
« public/BUILD.gn ('K') | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698