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

Side by Side Diff: sky/engine/platform/scroll/ScrollableArea.cpp

Issue 681023002: Remove a bunch of frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/platform/scroll/ScrollableArea.h ('k') | sky/engine/web/ChromeClientImpl.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) 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 void ScrollableArea::willEndLiveResize() 268 void ScrollableArea::willEndLiveResize()
269 { 269 {
270 if (!m_inLiveResize) 270 if (!m_inLiveResize)
271 return; 271 return;
272 m_inLiveResize = false; 272 m_inLiveResize = false;
273 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) 273 if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
274 scrollAnimator->willEndLiveResize(); 274 scrollAnimator->willEndLiveResize();
275 } 275 }
276 276
277 void ScrollableArea::contentAreaWillPaint() const
278 {
279 if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
280 scrollAnimator->contentAreaWillPaint();
281 }
282
283 void ScrollableArea::mouseEnteredContentArea() const 277 void ScrollableArea::mouseEnteredContentArea() const
284 { 278 {
285 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) 279 if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
286 scrollAnimator->mouseEnteredContentArea(); 280 scrollAnimator->mouseEnteredContentArea();
287 } 281 }
288 282
289 void ScrollableArea::mouseExitedContentArea() const 283 void ScrollableArea::mouseExitedContentArea() const
290 { 284 {
291 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) 285 if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
292 scrollAnimator->mouseEnteredContentArea(); 286 scrollAnimator->mouseEnteredContentArea();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 { 475 {
482 return scrollSize(orientation); 476 return scrollSize(orientation);
483 } 477 }
484 478
485 float ScrollableArea::pixelStep(ScrollbarOrientation) const 479 float ScrollableArea::pixelStep(ScrollbarOrientation) const
486 { 480 {
487 return 1; 481 return 1;
488 } 482 }
489 483
490 } // namespace blink 484 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/scroll/ScrollableArea.h ('k') | sky/engine/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698