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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2730773003: Rename FrameViewBase fields and methods *Widget* to ...FrameViewBase... (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // Non-overlay scrollbars should always participate in hit testing. 563 // Non-overlay scrollbars should always participate in hit testing.
564 if (!isOverlayScrollbar()) 564 if (!isOverlayScrollbar())
565 return true; 565 return true;
566 return !m_scrollableArea->scrollbarsHidden(); 566 return !m_scrollableArea->scrollbarsHidden();
567 } 567 }
568 568
569 bool Scrollbar::isWindowActive() const { 569 bool Scrollbar::isWindowActive() const {
570 return m_scrollableArea && m_scrollableArea->isActive(); 570 return m_scrollableArea && m_scrollableArea->isActive();
571 } 571 }
572 572
573 IntRect Scrollbar::convertToContainingWidget(const IntRect& localRect) const { 573 IntRect Scrollbar::convertToContainingFrameViewBase(
574 const IntRect& localRect) const {
574 if (m_scrollableArea) 575 if (m_scrollableArea)
575 return m_scrollableArea->convertFromScrollbarToContainingWidget(*this, 576 return m_scrollableArea->convertFromScrollbarToContainingWidget(*this,
576 localRect); 577 localRect);
577 578
578 return FrameViewBase::convertToContainingWidget(localRect); 579 return FrameViewBase::convertToContainingFrameViewBase(localRect);
579 } 580 }
580 581
581 IntRect Scrollbar::convertFromContainingWidget( 582 IntRect Scrollbar::convertFromContainingFrameViewBase(
582 const IntRect& parentRect) const { 583 const IntRect& parentRect) const {
583 if (m_scrollableArea) 584 if (m_scrollableArea)
584 return m_scrollableArea->convertFromContainingWidgetToScrollbar(*this, 585 return m_scrollableArea->convertFromContainingWidgetToScrollbar(*this,
585 parentRect); 586 parentRect);
586 587
587 return FrameViewBase::convertFromContainingWidget(parentRect); 588 return FrameViewBase::convertFromContainingFrameViewBase(parentRect);
588 } 589 }
589 590
590 IntPoint Scrollbar::convertToContainingWidget( 591 IntPoint Scrollbar::convertToContainingFrameViewBase(
591 const IntPoint& localPoint) const { 592 const IntPoint& localPoint) const {
592 if (m_scrollableArea) 593 if (m_scrollableArea)
593 return m_scrollableArea->convertFromScrollbarToContainingWidget(*this, 594 return m_scrollableArea->convertFromScrollbarToContainingWidget(*this,
594 localPoint); 595 localPoint);
595 596
596 return FrameViewBase::convertToContainingWidget(localPoint); 597 return FrameViewBase::convertToContainingFrameViewBase(localPoint);
597 } 598 }
598 599
599 IntPoint Scrollbar::convertFromContainingWidget( 600 IntPoint Scrollbar::convertFromContainingFrameViewBase(
600 const IntPoint& parentPoint) const { 601 const IntPoint& parentPoint) const {
601 if (m_scrollableArea) 602 if (m_scrollableArea)
602 return m_scrollableArea->convertFromContainingWidgetToScrollbar( 603 return m_scrollableArea->convertFromContainingWidgetToScrollbar(
603 *this, parentPoint); 604 *this, parentPoint);
604 605
605 return FrameViewBase::convertFromContainingWidget(parentPoint); 606 return FrameViewBase::convertFromContainingFrameViewBase(parentPoint);
606 } 607 }
607 608
608 float Scrollbar::scrollableAreaCurrentPos() const { 609 float Scrollbar::scrollableAreaCurrentPos() const {
609 if (!m_scrollableArea) 610 if (!m_scrollableArea)
610 return 0; 611 return 0;
611 612
612 if (m_orientation == HorizontalScrollbar) { 613 if (m_orientation == HorizontalScrollbar) {
613 return m_scrollableArea->getScrollOffset().width() - 614 return m_scrollableArea->getScrollOffset().width() -
614 m_scrollableArea->minimumScrollOffset().width(); 615 m_scrollableArea->minimumScrollOffset().width();
615 } 616 }
(...skipping 20 matching lines...) Expand all
636 invalidParts = AllParts; 637 invalidParts = AllParts;
637 if (invalidParts & ~ThumbPart) 638 if (invalidParts & ~ThumbPart)
638 m_trackNeedsRepaint = true; 639 m_trackNeedsRepaint = true;
639 if (invalidParts & ThumbPart) 640 if (invalidParts & ThumbPart)
640 m_thumbNeedsRepaint = true; 641 m_thumbNeedsRepaint = true;
641 if (m_scrollableArea) 642 if (m_scrollableArea)
642 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); 643 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation());
643 } 644 }
644 645
645 } // namespace blink 646 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698