| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "core/inspector/InspectorAnimationAgent.h" | 7 #include "core/inspector/InspectorAnimationAgent.h" |
| 8 | 8 |
| 9 #include "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
| 10 #include "core/animation/AnimationEffect.h" | 10 #include "core/animation/AnimationEffect.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 return base64Encode(reinterpret_cast<const char*>(digestResult.data()), 10); | 397 return base64Encode(reinterpret_cast<const char*>(digestResult.data()), 10); |
| 398 } | 398 } |
| 399 | 399 |
| 400 void InspectorAnimationAgent::didCreateAnimation(unsigned sequenceNumber) | 400 void InspectorAnimationAgent::didCreateAnimation(unsigned sequenceNumber) |
| 401 { | 401 { |
| 402 if (m_isCloning) | 402 if (m_isCloning) |
| 403 return; | 403 return; |
| 404 frontend()->animationCreated(String::number(sequenceNumber)); | 404 frontend()->animationCreated(String::number(sequenceNumber)); |
| 405 } | 405 } |
| 406 | 406 |
| 407 void InspectorAnimationAgent::didCancelAnimation(unsigned sequenceNumber) |
| 408 { |
| 409 frontend()->animationCancelled(String::number(sequenceNumber)); |
| 410 } |
| 411 |
| 407 void InspectorAnimationAgent::didStartAnimation(Animation* animation) | 412 void InspectorAnimationAgent::didStartAnimation(Animation* animation) |
| 408 { | 413 { |
| 409 const String& animationId = String::number(animation->sequenceNumber()); | 414 const String& animationId = String::number(animation->sequenceNumber()); |
| 410 if (m_idToAnimation.get(animationId)) | 415 if (m_idToAnimation.get(animationId)) |
| 411 return; | 416 return; |
| 412 frontend()->animationStarted(buildObjectForAnimation(*animation)); | 417 frontend()->animationStarted(buildObjectForAnimation(*animation)); |
| 413 } | 418 } |
| 414 | 419 |
| 415 void InspectorAnimationAgent::didClearDocumentOfWindowObject(LocalFrame* frame) | 420 void InspectorAnimationAgent::didClearDocumentOfWindowObject(LocalFrame* frame) |
| 416 { | 421 { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 visitor->trace(m_cssAgent); | 454 visitor->trace(m_cssAgent); |
| 450 visitor->trace(m_injectedScriptManager); | 455 visitor->trace(m_injectedScriptManager); |
| 451 visitor->trace(m_idToAnimation); | 456 visitor->trace(m_idToAnimation); |
| 452 visitor->trace(m_idToAnimationType); | 457 visitor->trace(m_idToAnimationType); |
| 453 visitor->trace(m_idToAnimationClone); | 458 visitor->trace(m_idToAnimationClone); |
| 454 #endif | 459 #endif |
| 455 InspectorBaseAgent::trace(visitor); | 460 InspectorBaseAgent::trace(visitor); |
| 456 } | 461 } |
| 457 | 462 |
| 458 } | 463 } |
| OLD | NEW |