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

Unified Diff: third_party/WebKit/public/web/WebFrameOwnerProperties.h

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_unittests compile fix Created 5 years, 1 month 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 | « third_party/WebKit/public/web/WebFrameClient.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameOwnerProperties.h
diff --git a/third_party/WebKit/public/web/WebFrameOwnerProperties.h b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0c282c914f76aa9f1096af6da2414359c199a29
--- /dev/null
+++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebFrameOwnerProperties_h
+#define WebFrameOwnerProperties_h
+
+namespace blink {
+
+struct WebFrameOwnerProperties {
+ enum class ScrollingMode {
+ Auto,
+ AlwaysOff,
+ AlwaysOn,
+ Last = AlwaysOn
+ };
+
+ ScrollingMode scrollingMode;
+ int marginWidth;
+ int marginHeight;
+
+ WebFrameOwnerProperties()
+ : scrollingMode(ScrollingMode::Auto)
+ , marginWidth(-1)
+ , marginHeight(-1)
+ {
+ }
+
+#if INSIDE_BLINK
+ WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int marginHeight)
+ : scrollingMode(static_cast<ScrollingMode>(scrollingMode))
+ , marginWidth(marginWidth)
+ , marginHeight(marginHeight)
+ {
+ }
+#endif
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698