summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.cc
blob: 1e6f96a09ce6e5867964b5762e95ced4ea6b8548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "webkit/tools/test_shell/webwidget_host.h"

#include "base/bind.h"
#include "base/message_loop.h"

void WebWidgetHost::ScheduleAnimation() {
  MessageLoop::current()->PostDelayedTask(
      FROM_HERE,
      base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()),
      base::TimeDelta::FromMilliseconds(10));
}