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

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

Issue 2763373002: Overlay scrollbars flush with window edge (Closed)
Patch Set: Created 3 years, 9 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual bool shouldDisableInvisibleScrollbars() const { return true; } 83 virtual bool shouldDisableInvisibleScrollbars() const { return true; }
84 84
85 virtual bool invalidateOnMouseEnterExit() { return false; } 85 virtual bool invalidateOnMouseEnterExit() { return false; }
86 virtual bool invalidateOnWindowActiveChange() const { return false; } 86 virtual bool invalidateOnWindowActiveChange() const { return false; }
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 oldPosition, 92 float oldPosition,
93 float newPosition) const { 93 float newPosition,
94 bool hitBeginOrEndChanged) const {
94 return AllParts; 95 return AllParts;
95 } 96 }
96 97
97 // Returns parts of the scrollbar which must be repainted following a change 98 // Returns parts of the scrollbar which must be repainted following a change
98 // in enabled state. 99 // in enabled state.
99 virtual ScrollbarPart invalidateOnEnabledChange() const { return AllParts; } 100 virtual ScrollbarPart invalidateOnEnabledChange() const { return AllParts; }
100 101
101 virtual void paintScrollCorner(GraphicsContext&, 102 virtual void paintScrollCorner(GraphicsContext&,
102 const DisplayItemClient&, 103 const DisplayItemClient&,
103 const IntRect& cornerRect); 104 const IntRect& cornerRect);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 215 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
215 216
216 private: 217 private:
217 static ScrollbarTheme& 218 static ScrollbarTheme&
218 nativeTheme(); // Must be implemented to return the correct theme subclass. 219 nativeTheme(); // Must be implemented to return the correct theme subclass.
219 static bool gMockScrollbarsEnabled; 220 static bool gMockScrollbarsEnabled;
220 }; 221 };
221 222
222 } // namespace blink 223 } // namespace blink
223 #endif 224 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698