OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebFrameOwnerProperties_h |
| 6 #define WebFrameOwnerProperties_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 struct WebFrameOwnerProperties { |
| 11 enum class ScrollingMode { |
| 12 Auto, |
| 13 AlwaysOff, |
| 14 AlwaysOn, |
| 15 Last = AlwaysOn |
| 16 }; |
| 17 |
| 18 ScrollingMode scrollingMode; |
| 19 int marginWidth; |
| 20 int marginHeight; |
| 21 |
| 22 WebFrameOwnerProperties() |
| 23 : scrollingMode(ScrollingMode::Auto) |
| 24 , marginWidth(-1) |
| 25 , marginHeight(-1) |
| 26 { |
| 27 } |
| 28 |
| 29 #if INSIDE_BLINK |
| 30 WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int ma
rginHeight) |
| 31 : scrollingMode(static_cast<ScrollingMode>(scrollingMode)) |
| 32 , marginWidth(marginWidth) |
| 33 , marginHeight(marginHeight) |
| 34 { |
| 35 } |
| 36 #endif |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif |
OLD | NEW |