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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: overlay-scrollbar-mouse-capture now works on Mac Created 4 years, 1 month 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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 float currentPos() const override { return m_currentPos; } 98 float currentPos() const override { return m_currentPos; }
99 int visibleSize() const override { return m_visibleSize; } 99 int visibleSize() const override { return m_visibleSize; }
100 int totalSize() const override { return m_totalSize; } 100 int totalSize() const override { return m_totalSize; }
101 int maximum() const override { return m_totalSize - m_visibleSize; } 101 int maximum() const override { return m_totalSize - m_visibleSize; }
102 ScrollbarControlSize controlSize() const override { return m_controlSize; } 102 ScrollbarControlSize controlSize() const override { return m_controlSize; }
103 103
104 ScrollbarPart pressedPart() const override { return m_pressedPart; } 104 ScrollbarPart pressedPart() const override { return m_pressedPart; }
105 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } 105 ScrollbarPart hoveredPart() const override { return m_hoveredPart; }
106 106
107 void styleChanged() override {} 107 void styleChanged() override {}
108 void visibilityChanged() override; 108 void setScrollbarsHidden(bool) override;
dtapuska 2016/11/02 16:53:21 Personally I'd prefer if this was a positive affir
skobes 2016/11/02 21:02:43 I prefer setScrollbarsHidden for consistency with
bokan 2016/11/02 22:41:57 I preferred |hidden| to |visible| since visible is
109 bool enabled() const override { return m_enabled; } 109 bool enabled() const override { return m_enabled; }
110 void setEnabled(bool) override; 110 void setEnabled(bool) override;
111 111
112 int scrollbarThickness() const; 112 int scrollbarThickness() const;
113 113
114 // Called by the ScrollableArea when the scroll offset changes. 114 // Called by the ScrollableArea when the scroll offset changes.
115 // Will trigger paint invalidation if required. 115 // Will trigger paint invalidation if required.
116 void offsetDidChange(); 116 void offsetDidChange();
117 117
118 void disconnectFromScrollableArea(); 118 void disconnectFromScrollableArea();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 DEFINE_TYPE_CASTS(Scrollbar, 257 DEFINE_TYPE_CASTS(Scrollbar,
258 Widget, 258 Widget,
259 widget, 259 widget,
260 widget->isScrollbar(), 260 widget->isScrollbar(),
261 widget.isScrollbar()); 261 widget.isScrollbar());
262 262
263 } // namespace blink 263 } // namespace blink
264 264
265 #endif // Scrollbar_h 265 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698