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

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

Issue 1591953005: Make ScrollbarThemeAura selectively invalidate scrollbar parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master; remove blank line Created 4 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 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } 90 ScrollbarPart hoveredPart() const override { return m_hoveredPart; }
91 91
92 void styleChanged() override { } 92 void styleChanged() override { }
93 void visibilityChanged() override; 93 void visibilityChanged() override;
94 bool enabled() const override { return m_enabled; } 94 bool enabled() const override { return m_enabled; }
95 void setEnabled(bool) override; 95 void setEnabled(bool) override;
96 96
97 int scrollbarThickness() const; 97 int scrollbarThickness() const;
98 98
99 // Called by the ScrollableArea when the scroll offset changes. 99 // Called by the ScrollableArea when the scroll offset changes.
100 // Will trigger paint invalidation if required.
100 void offsetDidChange(); 101 void offsetDidChange();
101 102
102 void disconnectFromScrollableArea(); 103 void disconnectFromScrollableArea();
103 ScrollableArea* scrollableArea() const { return m_scrollableArea; } 104 ScrollableArea* scrollableArea() const { return m_scrollableArea; }
104 105
105 int pressedPos() const { return m_pressedPos; } 106 int pressedPos() const { return m_pressedPos; }
106 107
107 virtual void setHoveredPart(ScrollbarPart); 108 virtual void setHoveredPart(ScrollbarPart);
108 virtual void setPressedPart(ScrollbarPart); 109 virtual void setPressedPart(ScrollbarPart);
109 110
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 bool m_trackNeedsRepaint; 226 bool m_trackNeedsRepaint;
226 bool m_thumbNeedsRepaint; 227 bool m_thumbNeedsRepaint;
227 }; 228 };
228 229
229 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 230 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
230 231
231 } // namespace blink 232 } // namespace blink
232 233
233 #endif // Scrollbar_h 234 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698