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

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

Issue 1245323002: Pass scroll bar placement as an enum instead of std::string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates per code review Created 5 years, 5 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/layout/LayoutScrollbar.cpp ('k') | Source/platform/scroll/ScrollbarTheme.h » ('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) 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 BackTrackPart = 1 << 2, 162 BackTrackPart = 1 << 2,
163 ThumbPart = 1 << 3, 163 ThumbPart = 1 << 3,
164 ForwardTrackPart = 1 << 4, 164 ForwardTrackPart = 1 << 4,
165 BackButtonEndPart = 1 << 5, 165 BackButtonEndPart = 1 << 5,
166 ForwardButtonEndPart = 1 << 6, 166 ForwardButtonEndPart = 1 << 6,
167 ScrollbarBGPart = 1 << 7, 167 ScrollbarBGPart = 1 << 7,
168 TrackBGPart = 1 << 8, 168 TrackBGPart = 1 << 8,
169 AllParts = 0xffffffff 169 AllParts = 0xffffffff
170 }; 170 };
171 171
172 enum ScrollbarButtonsPlacement {
173 ScrollbarButtonsNone,
174 ScrollbarButtonsSingle,
175 ScrollbarButtonsDoubleStart,
176 ScrollbarButtonsDoubleEnd,
177 ScrollbarButtonsDoubleBoth
178 };
179
180 enum ScrollbarOverlayStyle { 172 enum ScrollbarOverlayStyle {
181 ScrollbarOverlayStyleDefault, 173 ScrollbarOverlayStyleDefault,
182 ScrollbarOverlayStyleDark, 174 ScrollbarOverlayStyleDark,
183 ScrollbarOverlayStyleLight 175 ScrollbarOverlayStyleLight
184 }; 176 };
185 177
186 // The result of an attempt to scroll. If didScroll is true, then unusedScrollDe lta gives 178 // The result of an attempt to scroll. If didScroll is true, then unusedScrollDe lta gives
187 // the amount of the scroll delta that was not consumed by scrolling. If didScro ll is false 179 // the amount of the scroll delta that was not consumed by scrolling. If didScro ll is false
188 // then unusedScrollDelta is zero. 180 // then unusedScrollDelta is zero.
189 struct ScrollResultOneDimensional { 181 struct ScrollResultOneDimensional {
(...skipping 26 matching lines...) Expand all
216 bool didScrollY; 208 bool didScrollY;
217 float unusedScrollDeltaX; 209 float unusedScrollDeltaX;
218 float unusedScrollDeltaY; 210 float unusedScrollDeltaY;
219 }; 211 };
220 212
221 typedef unsigned ScrollbarControlPartMask; 213 typedef unsigned ScrollbarControlPartMask;
222 214
223 } 215 }
224 216
225 #endif 217 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutScrollbar.cpp ('k') | Source/platform/scroll/ScrollbarTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698