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

Unified Diff: sky/engine/platform/scroll/Scrollbar.cpp

Issue 856443005: Delete some noop and dead scrollbar code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/scroll/Scrollbar.cpp
diff --git a/sky/engine/platform/scroll/Scrollbar.cpp b/sky/engine/platform/scroll/Scrollbar.cpp
index 523e2de51e65d93b1288ca3a384504b0de5ec971..d08cdb29f85eb3bb45fa935ed3f7f00c2f1224a3 100644
--- a/sky/engine/platform/scroll/Scrollbar.cpp
+++ b/sky/engine/platform/scroll/Scrollbar.cpp
@@ -62,7 +62,6 @@ Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient
, m_pressedPos(0)
, m_scrollPos(0)
, m_documentDragPos(0)
- , m_enabled(true)
, m_scrollTimer(this, &Scrollbar::autoscrollTimerFired)
, m_overlapsResizer(false)
{
@@ -80,11 +79,6 @@ Scrollbar::~Scrollbar()
stopTimerIfNeeded();
}
-ScrollbarOverlayStyle Scrollbar::scrollbarOverlayStyle() const
-{
- return m_scrollableArea ? m_scrollableArea->scrollbarOverlayStyle() : ScrollbarOverlayStyleDefault;
-}
-
bool Scrollbar::isScrollableAreaActive() const
{
return m_scrollableArea && m_scrollableArea->isActive();
@@ -370,14 +364,6 @@ void Scrollbar::mouseDown(const PlatformMouseEvent& evt)
autoscrollPressedPart(initialAutoscrollTimerDelay());
}
-void Scrollbar::setEnabled(bool e)
-{
- if (m_enabled == e)
- return;
- m_enabled = e;
- invalidate();
-}
-
bool Scrollbar::isOverlayScrollbar() const
{
// FIXME(sky): Remove
« no previous file with comments | « sky/engine/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698