| 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 reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class FloatSize; | 51 class FloatSize; |
| 52 class HTMLFrameOwnerElement; | 52 class HTMLFrameOwnerElement; |
| 53 class LayoutPart; | 53 class LayoutPart; |
| 54 class LocalFrame; | 54 class LocalFrame; |
| 55 class KURL; | 55 class KURL; |
| 56 class Node; | 56 class Node; |
| 57 class Page; | 57 class Page; |
| 58 class RenderBox; | 58 class RenderBox; |
| 59 class LayoutEmbeddedObject; | 59 class LayoutEmbeddedObject; |
| 60 class LayoutObject; | 60 class LayoutObject; |
| 61 class RenderScrollbarPart; | 61 class LayoutScrollbarPart; |
| 62 class RenderView; | 62 class RenderView; |
| 63 class ScrollingCoordinator; | 63 class ScrollingCoordinator; |
| 64 struct CompositedSelectionBound; | 64 struct CompositedSelectionBound; |
| 65 | 65 |
| 66 typedef unsigned long long DOMTimeStamp; | 66 typedef unsigned long long DOMTimeStamp; |
| 67 | 67 |
| 68 class FrameView final : public Widget, public ScrollableArea { | 68 class FrameView final : public Widget, public ScrollableArea { |
| 69 public: | 69 public: |
| 70 friend class RenderView; | 70 friend class RenderView; |
| 71 friend class Internals; | 71 friend class Internals; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 void maintainScrollPositionAtAnchor(Node*); | 245 void maintainScrollPositionAtAnchor(Node*); |
| 246 void scrollElementToRect(Element*, const IntRect&); | 246 void scrollElementToRect(Element*, const IntRect&); |
| 247 void scrollContentsIfNeededRecursive(); | 247 void scrollContentsIfNeededRecursive(); |
| 248 | 248 |
| 249 // Methods to convert points and rects between the coordinate space of the r
enderer, and this view. | 249 // Methods to convert points and rects between the coordinate space of the r
enderer, and this view. |
| 250 IntRect convertFromRenderer(const LayoutObject&, const IntRect&) const; | 250 IntRect convertFromRenderer(const LayoutObject&, const IntRect&) const; |
| 251 IntRect convertToRenderer(const LayoutObject&, const IntRect&) const; | 251 IntRect convertToRenderer(const LayoutObject&, const IntRect&) const; |
| 252 IntPoint convertFromRenderer(const LayoutObject&, const IntPoint&) const; | 252 IntPoint convertFromRenderer(const LayoutObject&, const IntPoint&) const; |
| 253 IntPoint convertToRenderer(const LayoutObject&, const IntPoint&) const; | 253 IntPoint convertToRenderer(const LayoutObject&, const IntPoint&) const; |
| 254 | 254 |
| 255 bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { retu
rn m_scrollCorner == scrollCorner; } | 255 bool isFrameViewScrollCorner(LayoutScrollbarPart* scrollCorner) const { retu
rn m_scrollCorner == scrollCorner; } |
| 256 | 256 |
| 257 enum ScrollingReasons { | 257 enum ScrollingReasons { |
| 258 Scrollable, | 258 Scrollable, |
| 259 NotScrollableNoOverflow, | 259 NotScrollableNoOverflow, |
| 260 NotScrollableNotVisible, | 260 NotScrollableNotVisible, |
| 261 NotScrollableExplicitlyDisabled | 261 NotScrollableExplicitlyDisabled |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 ScrollingReasons scrollingReasons(); | 264 ScrollingReasons scrollingReasons(); |
| 265 bool isScrollable(); | 265 bool isScrollable(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Functions for child manipulation and inspection. | 370 // Functions for child manipulation and inspection. |
| 371 virtual void setParent(Widget*) override; | 371 virtual void setParent(Widget*) override; |
| 372 void removeChild(Widget*); | 372 void removeChild(Widget*); |
| 373 void addChild(PassRefPtrWillBeRawPtr<Widget>); | 373 void addChild(PassRefPtrWillBeRawPtr<Widget>); |
| 374 const ChildrenWidgetSet* children() const { return &m_children; } | 374 const ChildrenWidgetSet* children() const { return &m_children; } |
| 375 | 375 |
| 376 // If the scroll view does not use a native widget, then it will have cross-
platform Scrollbars. These functions | 376 // If the scroll view does not use a native widget, then it will have cross-
platform Scrollbars. These functions |
| 377 // can be used to obtain those scrollbars. | 377 // can be used to obtain those scrollbars. |
| 378 virtual Scrollbar* horizontalScrollbar() const override { return m_horizonta
lScrollbar.get(); } | 378 virtual Scrollbar* horizontalScrollbar() const override { return m_horizonta
lScrollbar.get(); } |
| 379 virtual Scrollbar* verticalScrollbar() const override { return m_verticalScr
ollbar.get(); } | 379 virtual Scrollbar* verticalScrollbar() const override { return m_verticalScr
ollbar.get(); } |
| 380 RenderScrollbarPart* scrollCorner() { return m_scrollCorner; } | 380 LayoutScrollbarPart* scrollCorner() { return m_scrollCorner; } |
| 381 | 381 |
| 382 void positionScrollbarLayers(); | 382 void positionScrollbarLayers(); |
| 383 | 383 |
| 384 // Functions for setting and retrieving the scrolling mode in each axis (hor
izontal/vertical). The mode has values of | 384 // Functions for setting and retrieving the scrolling mode in each axis (hor
izontal/vertical). The mode has values of |
| 385 // AlwaysOff, AlwaysOn, and Auto. AlwaysOff means never show a scrollbar, Al
waysOn means always show a scrollbar. | 385 // AlwaysOff, AlwaysOn, and Auto. AlwaysOff means never show a scrollbar, Al
waysOn means always show a scrollbar. |
| 386 // Auto means show a scrollbar only when one is needed. | 386 // Auto means show a scrollbar only when one is needed. |
| 387 // Note that for platforms with native widgets, these modes are considered a
dvisory. In other words the underlying native | 387 // Note that for platforms with native widgets, these modes are considered a
dvisory. In other words the underlying native |
| 388 // widget may choose not to honor the requested modes. | 388 // widget may choose not to honor the requested modes. |
| 389 void setScrollbarModes(ScrollbarMode horizontalMode, ScrollbarMode verticalM
ode, bool horizontalLock = false, bool verticalLock = false); | 389 void setScrollbarModes(ScrollbarMode horizontalMode, ScrollbarMode verticalM
ode, bool horizontalLock = false, bool verticalLock = false); |
| 390 void setHorizontalScrollbarMode(ScrollbarMode mode, bool lock = false) { set
ScrollbarModes(mode, verticalScrollbarMode(), lock, verticalScrollbarLock()); } | 390 void setHorizontalScrollbarMode(ScrollbarMode mode, bool lock = false) { set
ScrollbarModes(mode, verticalScrollbarMode(), lock, verticalScrollbarLock()); } |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 bool m_isPainting; | 758 bool m_isPainting; |
| 759 | 759 |
| 760 unsigned m_visuallyNonEmptyCharacterCount; | 760 unsigned m_visuallyNonEmptyCharacterCount; |
| 761 unsigned m_visuallyNonEmptyPixelCount; | 761 unsigned m_visuallyNonEmptyPixelCount; |
| 762 bool m_isVisuallyNonEmpty; | 762 bool m_isVisuallyNonEmpty; |
| 763 bool m_firstVisuallyNonEmptyLayoutCallbackPending; | 763 bool m_firstVisuallyNonEmptyLayoutCallbackPending; |
| 764 | 764 |
| 765 RefPtrWillBeMember<Node> m_maintainScrollPositionAnchor; | 765 RefPtrWillBeMember<Node> m_maintainScrollPositionAnchor; |
| 766 | 766 |
| 767 // Renderer to hold our custom scroll corner. | 767 // Renderer to hold our custom scroll corner. |
| 768 RenderScrollbarPart* m_scrollCorner; | 768 LayoutScrollbarPart* m_scrollCorner; |
| 769 | 769 |
| 770 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 770 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
| 771 OwnPtr<ScrollableAreaSet> m_animatingScrollableAreas; | 771 OwnPtr<ScrollableAreaSet> m_animatingScrollableAreas; |
| 772 OwnPtr<ResizerAreaSet> m_resizerAreas; | 772 OwnPtr<ResizerAreaSet> m_resizerAreas; |
| 773 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 773 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| 774 OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo; | 774 OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo; |
| 775 | 775 |
| 776 float m_visibleContentScaleFactor; | 776 float m_visibleContentScaleFactor; |
| 777 IntSize m_inputEventsOffsetForEmulation; | 777 IntSize m_inputEventsOffsetForEmulation; |
| 778 float m_inputEventsScaleFactorForEmulation; | 778 float m_inputEventsScaleFactorForEmulation; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 static const unsigned visualPixelThreshold = 32 * 32; | 844 static const unsigned visualPixelThreshold = 32 * 32; |
| 845 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 845 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 846 setIsVisuallyNonEmpty(); | 846 setIsVisuallyNonEmpty(); |
| 847 } | 847 } |
| 848 | 848 |
| 849 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 849 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 850 | 850 |
| 851 } // namespace blink | 851 } // namespace blink |
| 852 | 852 |
| 853 #endif // FrameView_h | 853 #endif // FrameView_h |
| OLD | NEW |