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

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

Issue 648913002: Clean up vestiges of ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/scroll/Scrollbar.h ('k') | Source/platform/scroll/ScrollbarThemeClient.h » ('j') | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 { 98 {
99 if (m_scrollableArea) 99 if (m_scrollableArea)
100 m_scrollableArea->getTickmarks(tickmarks); 100 m_scrollableArea->getTickmarks(tickmarks);
101 } 101 }
102 102
103 bool Scrollbar::isScrollableAreaActive() const 103 bool Scrollbar::isScrollableAreaActive() const
104 { 104 {
105 return m_scrollableArea && m_scrollableArea->isActive(); 105 return m_scrollableArea && m_scrollableArea->isActive();
106 } 106 }
107 107
108 bool Scrollbar::isScrollViewScrollbar() const
109 {
110 return m_scrollableArea && m_scrollableArea->isScrollViewScrollbar(this);
111 }
112
113 bool Scrollbar::isLeftSideVerticalScrollbar() const 108 bool Scrollbar::isLeftSideVerticalScrollbar() const
114 { 109 {
115 if (m_orientation == VerticalScrollbar && m_scrollableArea) 110 if (m_orientation == VerticalScrollbar && m_scrollableArea)
116 return m_scrollableArea->shouldPlaceVerticalScrollbarOnLeft(); 111 return m_scrollableArea->shouldPlaceVerticalScrollbarOnLeft();
117 return false; 112 return false;
118 } 113 }
119 114
120 void Scrollbar::offsetDidChange() 115 void Scrollbar::offsetDidChange()
121 { 116 {
122 ASSERT(m_scrollableArea); 117 ASSERT(m_scrollableArea);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 if (!m_scrollableArea) 527 if (!m_scrollableArea)
533 return 0; 528 return 0;
534 529
535 if (m_orientation == HorizontalScrollbar) 530 if (m_orientation == HorizontalScrollbar)
536 return m_scrollableArea->scrollPosition().x() - m_scrollableArea->minimu mScrollPosition().x(); 531 return m_scrollableArea->scrollPosition().x() - m_scrollableArea->minimu mScrollPosition().x();
537 532
538 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr ollPosition().y(); 533 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr ollPosition().y();
539 } 534 }
540 535
541 } // namespace blink 536 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scroll/Scrollbar.h ('k') | Source/platform/scroll/ScrollbarThemeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698