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

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

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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
« no previous file with comments | « Source/core/platform/ScrollView.cpp ('k') | Source/core/platform/ScrollbarThemeComposite.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 invalidatePart(scrollbar, ForwardTrackPart); 77 invalidatePart(scrollbar, ForwardTrackPart);
78 if (mask & BackButtonEndPart) 78 if (mask & BackButtonEndPart)
79 invalidatePart(scrollbar, BackButtonEndPart); 79 invalidatePart(scrollbar, BackButtonEndPart);
80 if (mask & ForwardButtonEndPart) 80 if (mask & ForwardButtonEndPart)
81 invalidatePart(scrollbar, ForwardButtonEndPart); 81 invalidatePart(scrollbar, ForwardButtonEndPart);
82 } 82 }
83 83
84 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart) { } 84 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart) { }
85 85
86 virtual void paintScrollCorner(ScrollView*, GraphicsContext* context, const IntRect& cornerRect) { defaultPaintScrollCorner(context, cornerRect); } 86 virtual void paintScrollCorner(ScrollView*, GraphicsContext* context, const IntRect& cornerRect) { defaultPaintScrollCorner(context, cornerRect); }
87 static void defaultPaintScrollCorner(GraphicsContext* context, const IntRect & cornerRect) { context->fillRect(cornerRect, Color::white, ColorSpaceDeviceRGB) ; } 87 static void defaultPaintScrollCorner(GraphicsContext* context, const IntRect & cornerRect) { context->fillRect(cornerRect, Color::white); }
88 88
89 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) { } 89 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) { }
90 virtual void paintOverhangAreas(ScrollView*, GraphicsContext*, const IntRect &, const IntRect&, const IntRect&) { } 90 virtual void paintOverhangAreas(ScrollView*, GraphicsContext*, const IntRect &, const IntRect&, const IntRect&) { }
91 91
92 #if ENABLE(RUBBER_BANDING) 92 #if ENABLE(RUBBER_BANDING)
93 virtual void setUpContentShadowLayer(GraphicsLayer*) { } 93 virtual void setUpContentShadowLayer(GraphicsLayer*) { }
94 #endif 94 #endif
95 95
96 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE vent&) { return false; } 96 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE vent&) { return false; }
97 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor mMouseEvent&) { return false; } 97 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor mMouseEvent&) { return false; }
(...skipping 14 matching lines...) Expand all
112 virtual bool isMockTheme() const { return false; } 112 virtual bool isMockTheme() const { return false; }
113 113
114 static ScrollbarTheme* theme(); 114 static ScrollbarTheme* theme();
115 115
116 private: 116 private:
117 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c orrect theme subclass. 117 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c orrect theme subclass.
118 }; 118 };
119 119
120 } 120 }
121 #endif 121 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/ScrollView.cpp ('k') | Source/core/platform/ScrollbarThemeComposite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698