Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 , unusedScrollDelta(0) { } | 186 , unusedScrollDelta(0) { } |
| 187 ScrollResultOneDimensional(bool didScroll, float unusedScrollDelta) | 187 ScrollResultOneDimensional(bool didScroll, float unusedScrollDelta) |
| 188 : didScroll(didScroll) | 188 : didScroll(didScroll) |
| 189 , unusedScrollDelta(unusedScrollDelta) { } | 189 , unusedScrollDelta(unusedScrollDelta) { } |
| 190 | 190 |
| 191 bool didScroll; | 191 bool didScroll; |
| 192 float unusedScrollDelta; | 192 float unusedScrollDelta; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 struct ScrollResult { | 195 struct ScrollResult { |
| 196 explicit ScrollResult(bool didScroll) | 196 explicit ScrollResult(bool didScroll) |
|
majidvp
2015/06/01 15:58:29
The 'true' value for didScroll is ambiguous in ter
MuVen
2015/06/02 09:04:00
Done.
| |
| 197 : didScroll(didScroll) | 197 : didScroll(didScroll) |
| 198 , unusedScrollDeltaX(0) | 198 , unusedScrollDeltaX(0) |
| 199 , unusedScrollDeltaY(0) { } | 199 , unusedScrollDeltaY(0) { } |
| 200 ScrollResult(bool didScroll, float unusedScrollDeltaX, float unusedScrollDel taY) | 200 ScrollResult(bool didScroll, float unusedScrollDeltaX, float unusedScrollDel taY) |
|
majidvp
2015/06/01 15:58:29
Please get rid of this constructor.
MuVen
2015/06/02 09:04:00
Done.
| |
| 201 : didScroll(didScroll) | 201 : didScroll(didScroll) |
| 202 , unusedScrollDeltaX(unusedScrollDeltaX) | 202 , unusedScrollDeltaX(unusedScrollDeltaX) |
| 203 , unusedScrollDeltaY(unusedScrollDeltaY) { } | 203 , unusedScrollDeltaY(unusedScrollDeltaY) { } |
| 204 ScrollResult(bool didScrollX, bool didScrollY, float unusedScrollDeltaX, flo at unusedScrollDeltaY) | |
| 205 : didScrollX(didScrollX) | |
| 206 , didScrollY(didScrollY) | |
| 207 , unusedScrollDeltaX(unusedScrollDeltaX) | |
| 208 , unusedScrollDeltaY(unusedScrollDeltaY) { } | |
| 204 | 209 |
| 205 bool didScroll; | 210 bool didScroll; |
|
majidvp
2015/06/01 15:58:29
We should not keep didScroll around anymore as it
MuVen
2015/06/02 09:04:00
Done.
| |
| 211 bool didScrollX; | |
| 212 bool didScrollY; | |
| 206 float unusedScrollDeltaX; | 213 float unusedScrollDeltaX; |
| 207 float unusedScrollDeltaY; | 214 float unusedScrollDeltaY; |
| 208 }; | 215 }; |
| 209 | 216 |
| 210 typedef unsigned ScrollbarControlPartMask; | 217 typedef unsigned ScrollbarControlPartMask; |
| 211 | 218 |
| 212 } | 219 } |
| 213 | 220 |
| 214 #endif | 221 #endif |
| OLD | NEW |