Index: public/web/WebFrameOwnerProperties.h |
diff --git a/public/platform/WebImageGenerator.h b/public/web/WebFrameOwnerProperties.h |
similarity index 71% |
copy from public/platform/WebImageGenerator.h |
copy to public/web/WebFrameOwnerProperties.h |
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..326a6bdf051fcce221118a9937cddef094ca4f09 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 class ScrollingMode { |
+ Auto, |
+ AlwaysOff, |
+ AlwaysOn, |
+ Last = AlwaysOn |
+ }; |
-namespace blink { |
+ ScrollingMode scrollingMode; |
+ int marginWidth; |
+ int marginHeight; |
-class BLINK_EXPORT WebImageGenerator { |
-public: |
- static SkImageGenerator* create(SkData*); |
+ WebFrameOwnerProperties() |
+ : scrollingMode(ScrollingMode::Auto) |
+ , marginWidth(-1) |
+ , marginHeight(-1) |
+ { |
+ } |
+ WebFrameOwnerProperties(ScrollingMode scrollingMode, int marginWidth, int marginHeight) |
alexmos
2015/09/02 21:37:06
nit: empty line before this?
lazyboy
2015/09/15 01:40:33
Done.
|
+ : scrollingMode(scrollingMode) |
+ , marginWidth(marginWidth) |
+ , marginHeight(marginHeight) |
+ { |
+ } |
}; |
} // namespace blink |