| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 // scroll offset. | 578 // scroll offset. |
| 579 IntPoint contentsToFrame(const IntPoint&) const; | 579 IntPoint contentsToFrame(const IntPoint&) const; |
| 580 IntRect contentsToFrame(const IntRect&) const; | 580 IntRect contentsToFrame(const IntRect&) const; |
| 581 IntPoint frameToContents(const IntPoint&) const; | 581 IntPoint frameToContents(const IntPoint&) const; |
| 582 FloatPoint frameToContents(const FloatPoint&) const; | 582 FloatPoint frameToContents(const FloatPoint&) const; |
| 583 IntRect frameToContents(const IntRect&) const; | 583 IntRect frameToContents(const IntRect&) const; |
| 584 | 584 |
| 585 // Functions for converting to screen coordinates. | 585 // Functions for converting to screen coordinates. |
| 586 IntRect contentsToScreen(const IntRect&) const; | 586 IntRect contentsToScreen(const IntRect&) const; |
| 587 | 587 |
| 588 // These functions are used to enable scrollbars to avoid window resizer | |
| 589 // controls that overlap the scroll view. This happens only on Mac OS X 10.6. | |
| 590 IntRect windowResizerRect() const; | |
| 591 bool containsScrollbarsAvoidingResizer() const; | |
| 592 void adjustScrollbarsAvoidingResizerCount(int overlapDelta); | |
| 593 void windowResizerRectChanged(); | |
| 594 | |
| 595 // For platforms that need to hit test scrollbars from within the engine's | 588 // For platforms that need to hit test scrollbars from within the engine's |
| 596 // event handlers (like Win32). | 589 // event handlers (like Win32). |
| 597 Scrollbar* scrollbarAtFramePoint(const IntPoint&); | 590 Scrollbar* scrollbarAtFramePoint(const IntPoint&); |
| 598 | 591 |
| 599 IntPoint convertChildToSelf(const Widget* child, | 592 IntPoint convertChildToSelf(const Widget* child, |
| 600 const IntPoint& point) const override { | 593 const IntPoint& point) const override { |
| 601 IntPoint newPoint = point; | 594 IntPoint newPoint = point; |
| 602 if (!isFrameViewScrollbar(child)) | 595 if (!isFrameViewScrollbar(child)) |
| 603 newPoint = contentsToFrame(point); | 596 newPoint = contentsToFrame(point); |
| 604 newPoint.moveBy(child->location()); | 597 newPoint.moveBy(child->location()); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 745 |
| 753 void scrollContentsIfNeeded(); | 746 void scrollContentsIfNeeded(); |
| 754 | 747 |
| 755 enum ComputeScrollbarExistenceOption { FirstPass, Incremental }; | 748 enum ComputeScrollbarExistenceOption { FirstPass, Incremental }; |
| 756 void computeScrollbarExistence( | 749 void computeScrollbarExistence( |
| 757 bool& newHasHorizontalScrollbar, | 750 bool& newHasHorizontalScrollbar, |
| 758 bool& newHasVerticalScrollbar, | 751 bool& newHasVerticalScrollbar, |
| 759 const IntSize& docSize, | 752 const IntSize& docSize, |
| 760 ComputeScrollbarExistenceOption = FirstPass) const; | 753 ComputeScrollbarExistenceOption = FirstPass) const; |
| 761 void updateScrollbarGeometry(); | 754 void updateScrollbarGeometry(); |
| 762 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar&); | |
| 763 | 755 |
| 764 // Called to update the scrollbars to accurately reflect the state of the | 756 // Called to update the scrollbars to accurately reflect the state of the |
| 765 // view. | 757 // view. |
| 766 void updateScrollbars(); | 758 void updateScrollbars(); |
| 767 void updateScrollbarsIfNeeded(); | 759 void updateScrollbarsIfNeeded(); |
| 768 | 760 |
| 769 class InUpdateScrollbarsScope { | 761 class InUpdateScrollbarsScope { |
| 770 STACK_ALLOCATED(); | 762 STACK_ALLOCATED(); |
| 771 | 763 |
| 772 public: | 764 public: |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 | 1001 |
| 1010 bool m_horizontalScrollbarLock; | 1002 bool m_horizontalScrollbarLock; |
| 1011 bool m_verticalScrollbarLock; | 1003 bool m_verticalScrollbarLock; |
| 1012 | 1004 |
| 1013 ChildrenWidgetSet m_children; | 1005 ChildrenWidgetSet m_children; |
| 1014 | 1006 |
| 1015 ScrollOffset m_pendingScrollDelta; | 1007 ScrollOffset m_pendingScrollDelta; |
| 1016 ScrollOffset m_scrollOffset; | 1008 ScrollOffset m_scrollOffset; |
| 1017 IntSize m_contentsSize; | 1009 IntSize m_contentsSize; |
| 1018 | 1010 |
| 1019 int m_scrollbarsAvoidingResizer; | |
| 1020 bool m_scrollbarsSuppressed; | 1011 bool m_scrollbarsSuppressed; |
| 1021 | 1012 |
| 1022 bool m_inUpdateScrollbars; | 1013 bool m_inUpdateScrollbars; |
| 1023 | 1014 |
| 1024 std::unique_ptr<LayoutAnalyzer> m_analyzer; | 1015 std::unique_ptr<LayoutAnalyzer> m_analyzer; |
| 1025 | 1016 |
| 1026 // Mark if something has changed in the mapping from Frame to GraphicsLayer | 1017 // Mark if something has changed in the mapping from Frame to GraphicsLayer |
| 1027 // and the Frame Timing regions should be recalculated. | 1018 // and the Frame Timing regions should be recalculated. |
| 1028 bool m_frameTimingRequestsDirty; | 1019 bool m_frameTimingRequestsDirty; |
| 1029 | 1020 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 widget.isFrameView()); | 1107 widget.isFrameView()); |
| 1117 DEFINE_TYPE_CASTS(FrameView, | 1108 DEFINE_TYPE_CASTS(FrameView, |
| 1118 ScrollableArea, | 1109 ScrollableArea, |
| 1119 scrollableArea, | 1110 scrollableArea, |
| 1120 scrollableArea->isFrameView(), | 1111 scrollableArea->isFrameView(), |
| 1121 scrollableArea.isFrameView()); | 1112 scrollableArea.isFrameView()); |
| 1122 | 1113 |
| 1123 } // namespace blink | 1114 } // namespace blink |
| 1124 | 1115 |
| 1125 #endif // FrameView_h | 1116 #endif // FrameView_h |
| OLD | NEW |