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

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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)
Patch Set: fix test Created 4 years, 1 month 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 BackTrackPart = 1 << 2, 178 BackTrackPart = 1 << 2,
179 ThumbPart = 1 << 3, 179 ThumbPart = 1 << 3,
180 ForwardTrackPart = 1 << 4, 180 ForwardTrackPart = 1 << 4,
181 BackButtonEndPart = 1 << 5, 181 BackButtonEndPart = 1 << 5,
182 ForwardButtonEndPart = 1 << 6, 182 ForwardButtonEndPart = 1 << 6,
183 ScrollbarBGPart = 1 << 7, 183 ScrollbarBGPart = 1 << 7,
184 TrackBGPart = 1 << 8, 184 TrackBGPart = 1 << 8,
185 AllParts = 0xffffffff 185 AllParts = 0xffffffff
186 }; 186 };
187 187
188 enum ScrollbarOverlayStyle { 188 enum ScrollbarOverlayColorTheme {
189 ScrollbarOverlayStyleDefault, 189 ScrollbarOverlayColorThemeDark,
190 ScrollbarOverlayStyleDark, 190 ScrollbarOverlayColorThemeLight
191 ScrollbarOverlayStyleLight
192 }; 191 };
193 192
194 enum ScrollBehavior { 193 enum ScrollBehavior {
195 ScrollBehaviorAuto, 194 ScrollBehaviorAuto,
196 ScrollBehaviorInstant, 195 ScrollBehaviorInstant,
197 ScrollBehaviorSmooth, 196 ScrollBehaviorSmooth,
198 }; 197 };
199 198
200 // The result of an attempt to scroll. If didScroll is true, then 199 // The result of an attempt to scroll. If didScroll is true, then
201 // unusedScrollDelta gives the amount of the scroll delta that was not consumed 200 // unusedScrollDelta gives the amount of the scroll delta that was not consumed
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 237
239 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0) 238 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0)
240 : ScrollOffset(0, delta); 239 : ScrollOffset(0, delta);
241 } 240 }
242 241
243 typedef unsigned ScrollbarControlPartMask; 242 typedef unsigned ScrollbarControlPartMask;
244 243
245 } // namespace blink 244 } // namespace blink
246 245
247 #endif 246 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698