Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1486743002: Clean up some remaining obsolete coordinate-space naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac compile Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698