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

Side by Side Diff: Source/web/LinkHighlight.cpp

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 9 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/web/LinkHighlight.h ('k') | Source/web/PageOverlay.cpp » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 302 }
303 303
304 void LinkHighlight::clearGraphicsLayerLinkHighlightPointer() 304 void LinkHighlight::clearGraphicsLayerLinkHighlightPointer()
305 { 305 {
306 if (m_currentGraphicsLayer) { 306 if (m_currentGraphicsLayer) {
307 m_currentGraphicsLayer->removeLinkHighlight(this); 307 m_currentGraphicsLayer->removeLinkHighlight(this);
308 m_currentGraphicsLayer = 0; 308 m_currentGraphicsLayer = 0;
309 } 309 }
310 } 310 }
311 311
312 void LinkHighlight::notifyAnimationStarted(double, double, blink::WebAnimation:: TargetProperty) 312 void LinkHighlight::notifyAnimationStarted(double, blink::WebAnimation::TargetPr operty)
313 { 313 {
314 } 314 }
315 315
316 void LinkHighlight::notifyAnimationFinished(double, double, blink::WebAnimation: :TargetProperty) 316 void LinkHighlight::notifyAnimationFinished(double, blink::WebAnimation::TargetP roperty)
317 { 317 {
318 // Since WebViewImpl may hang on to us for a while, make sure we 318 // Since WebViewImpl may hang on to us for a while, make sure we
319 // release resources as soon as possible. 319 // release resources as soon as possible.
320 clearGraphicsLayerLinkHighlightPointer(); 320 clearGraphicsLayerLinkHighlightPointer();
321 releaseResources(); 321 releaseResources();
322 } 322 }
323 323
324 void LinkHighlight::updateGeometry() 324 void LinkHighlight::updateGeometry()
325 { 325 {
326 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl), 326 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl),
(...skipping 28 matching lines...) Expand all
355 // Make sure we update geometry on the next callback from WebViewImpl::layou t(). 355 // Make sure we update geometry on the next callback from WebViewImpl::layou t().
356 m_geometryNeedsUpdate = true; 356 m_geometryNeedsUpdate = true;
357 } 357 }
358 358
359 WebLayer* LinkHighlight::layer() 359 WebLayer* LinkHighlight::layer()
360 { 360 {
361 return clipLayer(); 361 return clipLayer();
362 } 362 }
363 363
364 } // namespace WeKit 364 } // namespace WeKit
OLDNEW
« no previous file with comments | « Source/web/LinkHighlight.h ('k') | Source/web/PageOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698