| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 511 |
| 512 void setScrollingModesLock(bool lock = true) { | 512 void setScrollingModesLock(bool lock = true) { |
| 513 m_horizontalScrollbarLock = m_verticalScrollbarLock = lock; | 513 m_horizontalScrollbarLock = m_verticalScrollbarLock = lock; |
| 514 } | 514 } |
| 515 | 515 |
| 516 bool canHaveScrollbars() const { | 516 bool canHaveScrollbars() const { |
| 517 return horizontalScrollbarMode() != ScrollbarAlwaysOff || | 517 return horizontalScrollbarMode() != ScrollbarAlwaysOff || |
| 518 verticalScrollbarMode() != ScrollbarAlwaysOff; | 518 verticalScrollbarMode() != ScrollbarAlwaysOff; |
| 519 } | 519 } |
| 520 | 520 |
| 521 void sendScrollbarUseUMA(ScrollbarPart, ScrollbarOrientation) override; |
| 522 |
| 521 // The visible content rect has a location that is the scrolled offset of | 523 // The visible content rect has a location that is the scrolled offset of |
| 522 // the document. The width and height are the layout viewport width and | 524 // the document. The width and height are the layout viewport width and |
| 523 // height. By default the scrollbars themselves are excluded from this | 525 // height. By default the scrollbars themselves are excluded from this |
| 524 // rectangle, but an optional boolean argument allows them to be included. | 526 // rectangle, but an optional boolean argument allows them to be included. |
| 525 IntRect visibleContentRect( | 527 IntRect visibleContentRect( |
| 526 IncludeScrollbarsInRect = ExcludeScrollbars) const override; | 528 IncludeScrollbarsInRect = ExcludeScrollbars) const override; |
| 527 IntSize visibleContentSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 529 IntSize visibleContentSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| 528 | 530 |
| 529 // Clips the provided rect to the visible content area. For this purpose, we | 531 // Clips the provided rect to the visible content area. For this purpose, we |
| 530 // also query the chrome client for any active overrides to the visible area | 532 // also query the chrome client for any active overrides to the visible area |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 widget.isFrameView()); | 1225 widget.isFrameView()); |
| 1224 DEFINE_TYPE_CASTS(FrameView, | 1226 DEFINE_TYPE_CASTS(FrameView, |
| 1225 ScrollableArea, | 1227 ScrollableArea, |
| 1226 scrollableArea, | 1228 scrollableArea, |
| 1227 scrollableArea->isFrameView(), | 1229 scrollableArea->isFrameView(), |
| 1228 scrollableArea.isFrameView()); | 1230 scrollableArea.isFrameView()); |
| 1229 | 1231 |
| 1230 } // namespace blink | 1232 } // namespace blink |
| 1231 | 1233 |
| 1232 #endif // FrameView_h | 1234 #endif // FrameView_h |
| OLD | NEW |