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

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

Issue 1093383003: Remove mainthread overhang painting code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if (mask & BackButtonEndPart) 75 if (mask & BackButtonEndPart)
76 invalidatePart(scrollbar, BackButtonEndPart); 76 invalidatePart(scrollbar, BackButtonEndPart);
77 if (mask & ForwardButtonEndPart) 77 if (mask & ForwardButtonEndPart)
78 invalidatePart(scrollbar, ForwardButtonEndPart); 78 invalidatePart(scrollbar, ForwardButtonEndPart);
79 } 79 }
80 80
81 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart); 81 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart);
82 82
83 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap per&, const IntRect& cornerRect); 83 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap per&, const IntRect& cornerRect);
84 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) { } 84 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) { }
85 virtual void paintOverhangBackground(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&);
86 virtual void paintOverhangShadows(GraphicsContext*, const IntSize&, const In tRect&, const IntRect&, const IntRect&) { }
87 85
88 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE vent&); 86 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE vent&);
89 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor mMouseEvent&); 87 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor mMouseEvent&);
90 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P latformMouseEvent&) { return false; } 88 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P latformMouseEvent&) { return false; }
91 89
92 // The position of the thumb relative to the track. 90 // The position of the thumb relative to the track.
93 virtual int thumbPosition(ScrollbarThemeClient*); 91 virtual int thumbPosition(ScrollbarThemeClient*);
94 // The length of the thumb along the axis of the scrollbar. 92 // The length of the thumb along the axis of the scrollbar.
95 virtual int thumbLength(ScrollbarThemeClient*); 93 virtual int thumbLength(ScrollbarThemeClient*);
96 // The position of the track relative to the scrollbar. 94 // The position of the track relative to the scrollbar.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); 136 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart);
139 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 137 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
140 138
141 private: 139 private:
142 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c orrect theme subclass. 140 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c orrect theme subclass.
143 static bool gMockScrollbarsEnabled; 141 static bool gMockScrollbarsEnabled;
144 }; 142 };
145 143
146 } 144 }
147 #endif 145 #endif
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollableAreaTest.cpp ('k') | Source/platform/scroll/ScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698