| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 class Node; | 57 class Node; |
| 58 class Page; | 58 class Page; |
| 59 class LayoutAnalyzer; | 59 class LayoutAnalyzer; |
| 60 class LayoutBox; | 60 class LayoutBox; |
| 61 class LayoutEmbeddedObject; | 61 class LayoutEmbeddedObject; |
| 62 class LayoutObject; | 62 class LayoutObject; |
| 63 class LayoutScrollbarPart; | 63 class LayoutScrollbarPart; |
| 64 class LayoutView; | 64 class LayoutView; |
| 65 class ScrollingCoordinator; | 65 class ScrollingCoordinator; |
| 66 class TracedValue; | 66 class TracedValue; |
| 67 struct CompositedSelectionBound; | 67 struct CompositedSelection; |
| 68 | 68 |
| 69 typedef unsigned long long DOMTimeStamp; | 69 typedef unsigned long long DOMTimeStamp; |
| 70 | 70 |
| 71 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { | 71 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { |
| 72 public: | 72 public: |
| 73 friend class LayoutView; | 73 friend class LayoutView; |
| 74 friend class Internals; | 74 friend class Internals; |
| 75 | 75 |
| 76 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); | 76 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); |
| 77 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); | 77 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 void scheduleUpdateWidgetsIfNecessary(); | 673 void scheduleUpdateWidgetsIfNecessary(); |
| 674 void updateWidgetsTimerFired(Timer<FrameView>*); | 674 void updateWidgetsTimerFired(Timer<FrameView>*); |
| 675 bool updateWidgets(); | 675 bool updateWidgets(); |
| 676 | 676 |
| 677 void scrollToAnchor(); | 677 void scrollToAnchor(); |
| 678 void scrollPositionChanged(); | 678 void scrollPositionChanged(); |
| 679 void didScrollTimerFired(Timer<FrameView>*); | 679 void didScrollTimerFired(Timer<FrameView>*); |
| 680 | 680 |
| 681 void updateLayersAndCompositingAfterScrollIfNeeded(); | 681 void updateLayersAndCompositingAfterScrollIfNeeded(); |
| 682 | 682 |
| 683 static bool computeCompositedSelectionBounds(LocalFrame&, CompositedSelectio
nBound& start, CompositedSelectionBound& end); | 683 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&); |
| 684 void updateCompositedSelectionBoundsIfNeeded(); | 684 void updateCompositedSelectionIfNeeded(); |
| 685 | 685 |
| 686 // Returns true if the FrameView's own scrollbars overlay its content when v
isible. | 686 // Returns true if the FrameView's own scrollbars overlay its content when v
isible. |
| 687 bool hasOverlayScrollbars() const; | 687 bool hasOverlayScrollbars() const; |
| 688 | 688 |
| 689 // Returns true if the frame should use custom scrollbars. If true, one of | 689 // Returns true if the frame should use custom scrollbars. If true, one of |
| 690 // either |customScrollbarElement| or |customScrollbarFrame| will be set to | 690 // either |customScrollbarElement| or |customScrollbarFrame| will be set to |
| 691 // the element or frame which owns the scrollbar with the other set to null. | 691 // the element or frame which owns the scrollbar with the other set to null. |
| 692 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame) const; | 692 bool shouldUseCustomScrollbars(Element*& customScrollbarElement, LocalFrame*
& customScrollbarFrame) const; |
| 693 | 693 |
| 694 // Returns true if a scrollbar needs to go from native -> custom or vice ver
sa. | 694 // Returns true if a scrollbar needs to go from native -> custom or vice ver
sa. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 static const unsigned visualPixelThreshold = 32 * 32; | 874 static const unsigned visualPixelThreshold = 32 * 32; |
| 875 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 875 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 876 setIsVisuallyNonEmpty(); | 876 setIsVisuallyNonEmpty(); |
| 877 } | 877 } |
| 878 | 878 |
| 879 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 879 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 880 | 880 |
| 881 } // namespace blink | 881 } // namespace blink |
| 882 | 882 |
| 883 #endif // FrameView_h | 883 #endif // FrameView_h |
| OLD | NEW |