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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void Scrollbar::setFrameRect(const IntRect& frameRect) 103 void Scrollbar::setFrameRect(const IntRect& frameRect)
104 { 104 {
105 if (frameRect == this->frameRect()) 105 if (frameRect == this->frameRect())
106 return; 106 return;
107 107
108 Widget::setFrameRect(frameRect); 108 Widget::setFrameRect(frameRect);
109 setNeedsPaintInvalidation(AllParts); 109 setNeedsPaintInvalidation(AllParts);
110 } 110 }
111 111
112 ScrollbarOverlayStyle Scrollbar::scrollbarOverlayStyle() const 112 ScrollbarOverlayStyle Scrollbar::getScrollbarOverlayStyle() const
113 { 113 {
114 return m_scrollableArea ? m_scrollableArea->scrollbarOverlayStyle() : Scroll barOverlayStyleDefault; 114 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayStyle() : Scr ollbarOverlayStyleDefault;
115 } 115 }
116 116
117 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const 117 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const
118 { 118 {
119 if (m_scrollableArea) 119 if (m_scrollableArea)
120 m_scrollableArea->getTickmarks(tickmarks); 120 m_scrollableArea->getTickmarks(tickmarks);
121 } 121 }
122 122
123 bool Scrollbar::isScrollableAreaActive() const 123 bool Scrollbar::isScrollableAreaActive() const
124 { 124 {
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 invalidParts = AllParts; 580 invalidParts = AllParts;
581 if (invalidParts & ~ThumbPart) 581 if (invalidParts & ~ThumbPart)
582 m_trackNeedsRepaint = true; 582 m_trackNeedsRepaint = true;
583 if (invalidParts & ThumbPart) 583 if (invalidParts & ThumbPart)
584 m_thumbNeedsRepaint = true; 584 m_thumbNeedsRepaint = true;
585 if (m_scrollableArea) 585 if (m_scrollableArea)
586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); 586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation());
587 } 587 }
588 588
589 } // namespace blink 589 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698