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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 | 517 |
518 // Widget overrides to ensure that our children's visibility status is kept
up to date when we get shown and hidden. | 518 // Widget overrides to ensure that our children's visibility status is kept
up to date when we get shown and hidden. |
519 void show() override; | 519 void show() override; |
520 void hide() override; | 520 void hide() override; |
521 void setParentVisible(bool) override; | 521 void setParentVisible(bool) override; |
522 | 522 |
523 bool isPointInScrollbarCorner(const IntPoint&); | 523 bool isPointInScrollbarCorner(const IntPoint&); |
524 bool scrollbarCornerPresent() const; | 524 bool scrollbarCornerPresent() const; |
525 IntRect scrollCornerRect() const override; | 525 IntRect scrollCornerRect() const override; |
526 | 526 |
527 IntRect convertFromScrollbarToContainingView(const Scrollbar*, const IntRect
&) const override; | 527 IntRect convertFromScrollbarToContainingWidget(const Scrollbar*, const IntRe
ct&) const override; |
528 IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const IntRect
&) const override; | 528 IntRect convertFromContainingWidgetToScrollbar(const Scrollbar*, const IntRe
ct&) const override; |
529 IntPoint convertFromScrollbarToContainingView(const Scrollbar*, const IntPoi
nt&) const override; | 529 IntPoint convertFromScrollbarToContainingWidget(const Scrollbar*, const IntP
oint&) const override; |
530 IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, const IntPoi
nt&) const override; | 530 IntPoint convertFromContainingWidgetToScrollbar(const Scrollbar*, const IntP
oint&) const override; |
531 | 531 |
532 bool isFrameView() const override { return true; } | 532 bool isFrameView() const override { return true; } |
533 | 533 |
534 DECLARE_VIRTUAL_TRACE(); | 534 DECLARE_VIRTUAL_TRACE(); |
535 void notifyPageThatContentAreaWillPaint() const; | 535 void notifyPageThatContentAreaWillPaint() const; |
536 FrameView* parentFrameView() const; | 536 FrameView* parentFrameView() const; |
537 | 537 |
538 // Returns the scrollable area for the frame. For the root frame, this will | 538 // Returns the scrollable area for the frame. For the root frame, this will |
539 // be the RootFrameViewport, which adds pinch-zoom semantics to scrolling. | 539 // be the RootFrameViewport, which adds pinch-zoom semantics to scrolling. |
540 // For non-root frames, this will be the the ScrollableArea used by the | 540 // For non-root frames, this will be the the ScrollableArea used by the |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 void scheduleOrPerformPostLayoutTasks(); | 658 void scheduleOrPerformPostLayoutTasks(); |
659 void performPostLayoutTasks(); | 659 void performPostLayoutTasks(); |
660 | 660 |
661 DocumentLifecycle& lifecycle() const; | 661 DocumentLifecycle& lifecycle() const; |
662 | 662 |
663 void contentsResized() override; | 663 void contentsResized() override; |
664 void scrollbarExistenceDidChange(); | 664 void scrollbarExistenceDidChange(); |
665 | 665 |
666 // Override Widget methods to do point conversion via layoutObjects, in orde
r to | 666 // Override Widget methods to do point conversion via layoutObjects, in orde
r to |
667 // take transforms into account. | 667 // take transforms into account. |
668 IntRect convertToContainingView(const IntRect&) const override; | 668 IntRect convertToContainingWidget(const IntRect&) const override; |
669 IntRect convertFromContainingView(const IntRect&) const override; | 669 IntRect convertFromContainingWidget(const IntRect&) const override; |
670 IntPoint convertToContainingView(const IntPoint&) const override; | 670 IntPoint convertToContainingWidget(const IntPoint&) const override; |
671 IntPoint convertFromContainingView(const IntPoint&) const override; | 671 IntPoint convertFromContainingWidget(const IntPoint&) const override; |
672 | 672 |
673 void updateWidgetPositionsIfNeeded(); | 673 void updateWidgetPositionsIfNeeded(); |
674 | 674 |
675 bool wasViewportResized(); | 675 bool wasViewportResized(); |
676 void sendResizeEventIfNeeded(); | 676 void sendResizeEventIfNeeded(); |
677 | 677 |
678 void updateScrollableAreaSet(); | 678 void updateScrollableAreaSet(); |
679 | 679 |
680 void scheduleUpdateWidgetsIfNecessary(); | 680 void scheduleUpdateWidgetsIfNecessary(); |
681 void updateWidgetsTimerFired(Timer<FrameView>*); | 681 void updateWidgetsTimerFired(Timer<FrameView>*); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 static const unsigned visualPixelThreshold = 32 * 32; | 907 static const unsigned visualPixelThreshold = 32 * 32; |
908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
909 setIsVisuallyNonEmpty(); | 909 setIsVisuallyNonEmpty(); |
910 } | 910 } |
911 | 911 |
912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
913 | 913 |
914 } // namespace blink | 914 } // namespace blink |
915 | 915 |
916 #endif // FrameView_h | 916 #endif // FrameView_h |
OLD | NEW |