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

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

Issue 2835403002: Call ScrollableArea::ShowOverlayScrollbars for explicit scrolls only. (Closed)
Patch Set: fix VisualViewport Created 3 years, 7 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Returns parts of the scrollbar which must be repainted following a change 88 // Returns parts of the scrollbar which must be repainted following a change
89 // in the thumb position, given scroll positions before and after. 89 // in the thumb position, given scroll positions before and after.
90 virtual ScrollbarPart InvalidateOnThumbPositionChange( 90 virtual ScrollbarPart InvalidateOnThumbPositionChange(
91 const ScrollbarThemeClient&, 91 const ScrollbarThemeClient&,
92 float old_position, 92 float old_position,
93 float new_position) const { 93 float new_position) const {
94 return kAllParts; 94 return kAllParts;
95 } 95 }
96 96
97 // Returns parts of the scrollbar which must be repainted following a change
98 // in enabled state.
99 virtual ScrollbarPart InvalidateOnEnabledChange() const { return kAllParts; }
100
101 virtual void PaintScrollCorner(GraphicsContext&, 97 virtual void PaintScrollCorner(GraphicsContext&,
102 const DisplayItemClient&, 98 const DisplayItemClient&,
103 const IntRect& corner_rect); 99 const IntRect& corner_rect);
104 virtual void PaintTickmarks(GraphicsContext&, 100 virtual void PaintTickmarks(GraphicsContext&,
105 const Scrollbar&, 101 const Scrollbar&,
106 const IntRect&); 102 const IntRect&);
107 103
108 virtual bool ShouldCenterOnThumb(const ScrollbarThemeClient&, 104 virtual bool ShouldCenterOnThumb(const ScrollbarThemeClient&,
109 const WebMouseEvent&); 105 const WebMouseEvent&);
110 virtual bool ShouldSnapBackToDragOrigin(const ScrollbarThemeClient&, 106 virtual bool ShouldSnapBackToDragOrigin(const ScrollbarThemeClient&,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 static DisplayItem::Type TrackPiecePartToDisplayItemType(ScrollbarPart); 210 static DisplayItem::Type TrackPiecePartToDisplayItemType(ScrollbarPart);
215 211
216 private: 212 private:
217 static ScrollbarTheme& 213 static ScrollbarTheme&
218 NativeTheme(); // Must be implemented to return the correct theme subclass. 214 NativeTheme(); // Must be implemented to return the correct theme subclass.
219 static bool g_mock_scrollbars_enabled_; 215 static bool g_mock_scrollbars_enabled_;
220 }; 216 };
221 217
222 } // namespace blink 218 } // namespace blink
223 #endif 219 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698