summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/page/PageAnimator.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/page/PageAnimator.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/page/PageAnimator.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/page/PageAnimator.h b/chromium/third_party/WebKit/Source/core/page/PageAnimator.h
new file mode 100644
index 00000000000..5c8d9e5c240
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/core/page/PageAnimator.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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.
+
+#ifndef PageAnimator_h
+#define PageAnimator_h
+
+namespace WebCore {
+
+class Page;
+
+class PageAnimator {
+public:
+ explicit PageAnimator(Page*);
+
+ void scheduleVisualUpdate();
+ void serviceScriptedAnimations(double monotonicAnimationStartTime);
+
+ void setAnimationFramePending() { m_animationFramePending = true; }
+ bool isServicingAnimations() const { return m_servicingAnimations; }
+ void updateLayoutAndStyleForPainting();
+
+private:
+ Page* m_page;
+ bool m_animationFramePending;
+ bool m_servicingAnimations;
+ bool m_updatingLayoutAndStyleForPainting;
+};
+
+}
+
+#endif // PageAnimator_h