summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/layout_test_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r--webkit/tools/test_shell/layout_test_controller.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
index 3fa9a06..45c5a38 100644
--- a/webkit/tools/test_shell/layout_test_controller.cc
+++ b/webkit/tools/test_shell/layout_test_controller.cc
@@ -101,6 +101,7 @@ LayoutTestController::LayoutTestController(TestShell* shell) {
BindMethod("pauseAnimationAtTimeOnElementWithId", &LayoutTestController::pauseAnimationAtTimeOnElementWithId);
BindMethod("pauseTransitionAtTimeOnElementWithId", &LayoutTestController::pauseTransitionAtTimeOnElementWithId);
BindMethod("elementDoesAutoCompleteForElementWithId", &LayoutTestController::elementDoesAutoCompleteForElementWithId);
+ BindMethod("numberOfActiveAnimations", &LayoutTestController::numberOfActiveAnimations);
// The following are stubs.
BindMethod("dumpAsWebArchive", &LayoutTestController::dumpAsWebArchive);
@@ -617,6 +618,11 @@ void LayoutTestController::elementDoesAutoCompleteForElementWithId(
shell_->webView(), element_id));
}
+void LayoutTestController::numberOfActiveAnimations(const CppArgumentList& args,
+ CppVariant* result) {
+ result->Set(webkit_glue::NumberOfActiveAnimations(shell_->webView()));
+}
+
//
// Unimplemented stubs
//