| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 return false; | 179 return false; |
| 180 | 180 |
| 181 return true; | 181 return true; |
| 182 } | 182 } |
| 183 | 183 |
| 184 void ScrollableArea::setScrollOffsetFromAnimation(const IntPoint& offset) | 184 void ScrollableArea::setScrollOffsetFromAnimation(const IntPoint& offset) |
| 185 { | 185 { |
| 186 scrollPositionChanged(offset); | 186 scrollPositionChanged(offset); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void ScrollableArea::mouseEnteredContentArea() const | |
| 190 { | |
| 191 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) | |
| 192 scrollAnimator->mouseEnteredContentArea(); | |
| 193 } | |
| 194 | |
| 195 void ScrollableArea::mouseExitedContentArea() const | |
| 196 { | |
| 197 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) | |
| 198 scrollAnimator->mouseEnteredContentArea(); | |
| 199 } | |
| 200 | |
| 201 void ScrollableArea::mouseMovedInContentArea() const | |
| 202 { | |
| 203 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) | |
| 204 scrollAnimator->mouseMovedInContentArea(); | |
| 205 } | |
| 206 | |
| 207 void ScrollableArea::mouseEnteredScrollbar(Scrollbar* scrollbar) const | |
| 208 { | |
| 209 scrollAnimator()->mouseEnteredScrollbar(scrollbar); | |
| 210 } | |
| 211 | |
| 212 void ScrollableArea::mouseExitedScrollbar(Scrollbar* scrollbar) const | |
| 213 { | |
| 214 scrollAnimator()->mouseExitedScrollbar(scrollbar); | |
| 215 } | |
| 216 | |
| 217 void ScrollableArea::contentAreaDidShow() const | 189 void ScrollableArea::contentAreaDidShow() const |
| 218 { | 190 { |
| 219 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) | 191 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) |
| 220 scrollAnimator->contentAreaDidShow(); | 192 scrollAnimator->contentAreaDidShow(); |
| 221 } | 193 } |
| 222 | 194 |
| 223 void ScrollableArea::contentAreaDidHide() const | 195 void ScrollableArea::contentAreaDidHide() const |
| 224 { | 196 { |
| 225 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) | 197 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) |
| 226 scrollAnimator->contentAreaDidHide(); | 198 scrollAnimator->contentAreaDidHide(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 { | 266 { |
| 295 return scrollSize(orientation); | 267 return scrollSize(orientation); |
| 296 } | 268 } |
| 297 | 269 |
| 298 float ScrollableArea::pixelStep(ScrollbarOrientation) const | 270 float ScrollableArea::pixelStep(ScrollbarOrientation) const |
| 299 { | 271 { |
| 300 return 1; | 272 return 1; |
| 301 } | 273 } |
| 302 | 274 |
| 303 } // namespace blink | 275 } // namespace blink |
| OLD | NEW |