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

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: sigh....git cl format 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 float currentPos() const override { return m_currentPos; } 97 float currentPos() const override { return m_currentPos; }
98 int visibleSize() const override { return m_visibleSize; } 98 int visibleSize() const override { return m_visibleSize; }
99 int totalSize() const override { return m_totalSize; } 99 int totalSize() const override { return m_totalSize; }
100 int maximum() const override { return m_totalSize - m_visibleSize; } 100 int maximum() const override { return m_totalSize - m_visibleSize; }
101 ScrollbarControlSize controlSize() const override { return m_controlSize; } 101 ScrollbarControlSize controlSize() const override { return m_controlSize; }
102 102
103 ScrollbarPart pressedPart() const override { return m_pressedPart; } 103 ScrollbarPart pressedPart() const override { return m_pressedPart; }
104 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } 104 ScrollbarPart hoveredPart() const override { return m_hoveredPart; }
105 105
106 void styleChanged() override {} 106 void styleChanged() override {}
107 void visibilityChanged() override; 107 void setScrollbarsHidden(bool) override;
108 bool enabled() const override { return m_enabled; } 108 bool enabled() const override { return m_enabled; }
109 void setEnabled(bool) override; 109 void setEnabled(bool) override;
110 110
111 int scrollbarThickness() const; 111 int scrollbarThickness() const;
112 112
113 // Called by the ScrollableArea when the scroll offset changes. 113 // Called by the ScrollableArea when the scroll offset changes.
114 // Will trigger paint invalidation if required. 114 // Will trigger paint invalidation if required.
115 void offsetDidChange(); 115 void offsetDidChange();
116 116
117 void disconnectFromScrollableArea(); 117 void disconnectFromScrollableArea();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 DEFINE_TYPE_CASTS(Scrollbar, 256 DEFINE_TYPE_CASTS(Scrollbar,
257 Widget, 257 Widget,
258 widget, 258 widget,
259 widget->isScrollbar(), 259 widget->isScrollbar(),
260 widget.isScrollbar()); 260 widget.isScrollbar());
261 261
262 } // namespace blink 262 } // namespace blink
263 263
264 #endif // Scrollbar_h 264 #endif // Scrollbar_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698