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

Unified Diff: Source/web/RemoteBridgeFrameOwner.h

Issue 1319863006: (blink) Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments + static_cast for enum conversion Created 5 years, 3 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
Index: Source/web/RemoteBridgeFrameOwner.h
diff --git a/Source/web/RemoteBridgeFrameOwner.h b/Source/web/RemoteBridgeFrameOwner.h
index a022f820f100afb064a97e947597d6924aae8410..8db447fab31976219f33756b8ca94bc7c9461e29 100644
--- a/Source/web/RemoteBridgeFrameOwner.h
+++ b/Source/web/RemoteBridgeFrameOwner.h
@@ -6,6 +6,7 @@
#define RemoteBridgeFrameOwner_h
#include "core/frame/FrameOwner.h"
+#include "platform/scroll/ScrollTypes.h"
#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -50,6 +51,14 @@ public:
// TODO(dcheng): Implement.
}
+ void setScrollingMode(ScrollbarMode mode) { m_scrolling = mode; }
+ void setMarginWidth(int marginWidth) { m_marginWidth = marginWidth; }
+ void setMarginHeight(int marginHeight) { m_marginHeight = marginHeight; }
+
+ ScrollbarMode scrollingMode() const override { return m_scrolling; }
+ int marginWidth() const override { return m_marginWidth; }
+ int marginHeight() const override { return m_marginHeight; }
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -57,6 +66,9 @@ private:
RefPtrWillBeMember<WebLocalFrameImpl> m_frame;
SandboxFlags m_sandboxFlags;
+ ScrollbarMode m_scrolling;
+ int m_marginWidth;
+ int m_marginHeight;
};
DEFINE_TYPE_CASTS(RemoteBridgeFrameOwner, FrameOwner, owner, !owner->isLocal(), !owner.isLocal());

Powered by Google App Engine
This is Rietveld 408576698