summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.h
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 23:34:50 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 23:34:50 +0000
commit5f8b102b5fafc489ba7044a11748c4194ad2b3ec (patch)
treec9aa1cf1eae89373a4f74abc9e1f7d6e98ec99bc /webkit/tools/test_shell/webwidget_host.h
parentcef99efc12e7fabf12ebfbc0c67fa8322eee8351 (diff)
downloadchromium_src-5f8b102b5fafc489ba7044a11748c4194ad2b3ec.zip
chromium_src-5f8b102b5fafc489ba7044a11748c4194ad2b3ec.tar.gz
chromium_src-5f8b102b5fafc489ba7044a11748c4194ad2b3ec.tar.bz2
Chromium support for window.webkitRequestAnimationFrame()
This is a very simple scheduler that targets 100fps. BUG=64848 TEST=layout tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71909 Review URL: http://codereview.chromium.org/6136005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r--webkit/tools/test_shell/webwidget_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index c344b24..02b2669 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -6,6 +6,7 @@
#define WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_
#include "base/basictypes.h"
+#include "base/task.h"
#include "base/scoped_ptr.h"
#include "gfx/native_widget_types.h"
#include "gfx/rect.h"
@@ -48,6 +49,7 @@ class WebWidgetHost {
void DidInvalidateRect(const gfx::Rect& rect);
void DidScrollRect(int dx, int dy, const gfx::Rect& clip_rect);
void ScheduleComposite();
+ void ScheduleAnimation();
#if defined(OS_WIN)
void SetCursor(HCURSOR cursor);
#endif
@@ -149,6 +151,9 @@ class WebWidgetHost {
#ifndef NDEBUG
bool painting_;
#endif
+
+ private:
+ ScopedRunnableMethodFactory<WebWidgetHost> factory_;
};
#endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_