Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / tests / sim / SimDisplayItemList.h
blobdcd890036fce94ae8abbe69741b4d62232a346bc
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.
5 #ifndef SimDisplayItemList_h
6 #define SimDisplayItemList_h
8 #include "public/platform/WebDisplayItemList.h"
9 #include "web/tests/sim/SimCanvas.h"
10 #include "wtf/text/WTFString.h"
12 namespace blink {
14 class SimDisplayItemList final : public WebDisplayItemList {
15 public:
16 SimDisplayItemList();
18 void appendDrawingItem(const SkPicture*) override;
20 int drawCount() const { return m_commands.size(); }
22 bool containsText() const { return m_containsText; }
23 bool contains(SimCanvas::CommandType, const String& colorString = String()) const;
25 private:
26 bool m_containsText;
27 Vector<SimCanvas::Command> m_commands;
30 } // namespace blink
32 #endif