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

Side by Side Diff: Source/web/tests/mocks/MockLayerTreeView.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: remove extra incs. Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MockLayerTreeView_h
6 #define MockLayerTreeView_h
7
8 #include "public/platform/WebLayerTreeView.h"
9 #include "wtf/OwnPtr.h"
10
11 namespace blink {
12
13 class MockLayerTreeView : public WebLayerTreeView {
dcheng 2015/08/27 23:10:22 Being pedantic, these seem more like "fakes" or "s
esprehn 2015/08/28 08:31:43 We use this terminology in all our tests though, s
14 public:
15 MockLayerTreeView();
16
17 void setNeedsAnimate() override { m_needsAnimate = true; }
18 bool needsAnimate() const { return m_needsAnimate; }
19
20 void setDeferCommits(bool deferCommits) override { m_deferCommits = deferCom mits; }
21 bool deferCommits() const { return m_deferCommits; }
22
23 private:
24 OwnPtr<WebLayerTreeView> m_layerTreeView;
25 bool m_needsAnimate;
26 bool m_deferCommits;
27 };
28
29 } // namespace blink
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698