| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/tools/test_shell/webwidget_host.h" | 5 #include "webkit/tools/test_shell/webwidget_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 | 9 |
| 10 void WebWidgetHost::ScheduleAnimation() { | 10 void WebWidgetHost::ScheduleAnimation() { |
| 11 MessageLoop::current()->PostDelayedTask( | 11 MessageLoop::current()->PostDelayedTask( |
| 12 FROM_HERE, | 12 FROM_HERE, |
| 13 base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()), | 13 base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()), |
| 14 10); | 14 base::TimeDelta::FromMilliseconds(10)); |
| 15 } | 15 } |
| OLD | NEW |