Chromium Code Reviews| 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..0c040a6ce97ad1d2da582851a2d61374a7c6aa40 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h |
| @@ -0,0 +1,46 @@ |
| +// 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) |
| + { |
| + } |
| + |
| + WebFrameOwnerProperties(ScrollingMode scrollingMode, int marginWidth, int marginHeight) |
| + : scrollingMode(scrollingMode) |
| + , marginWidth(marginWidth) |
| + , marginHeight(marginHeight) |
| + { |
| + } |
| + |
| +#if INSIDE_BLINK |
| + WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int marginHeight) |
| + : WebFrameOwnerProperties(static_cast<ScrollingMode>(scrollingMode), marginWidth, marginHeight) |
|
dcheng
2015/10/14 07:20:43
I don't think anyone else actually calls this cons
lazyboy
2015/10/14 20:05:30
Done.
|
| + { |
| + } |
| +#endif |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |