Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1400)

Unified Diff: Source/web/tests/sim/SimLayerTreeView.h

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dcheng@ review Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/DocumentLoadingRenderingTest.cpp ('k') | Source/web/tests/sim/SimLayerTreeView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/sim/SimLayerTreeView.h
diff --git a/Source/web/tests/sim/SimLayerTreeView.h b/Source/web/tests/sim/SimLayerTreeView.h
new file mode 100644
index 0000000000000000000000000000000000000000..655a040f179d93a838a12e9e0d9da2d10dc937bd
--- /dev/null
+++ b/Source/web/tests/sim/SimLayerTreeView.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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 SimLayerTreeView_h
+#define SimLayerTreeView_h
+
+#include "public/platform/WebLayerTreeView.h"
+#include "wtf/OwnPtr.h"
+
+namespace blink {
+
+class SimLayerTreeView : public WebLayerTreeView {
+public:
+ SimLayerTreeView();
+
+ void setNeedsAnimate() override { m_needsAnimate = true; }
+ bool needsAnimate() const { return m_needsAnimate; }
+
+ void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCommits; }
+ bool deferCommits() const { return m_deferCommits; }
+
+private:
+ bool m_needsAnimate;
+ bool m_deferCommits;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « Source/web/tests/DocumentLoadingRenderingTest.cpp ('k') | Source/web/tests/sim/SimLayerTreeView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698