OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DisplayItem_h | 5 #ifndef DisplayItem_h |
6 #define DisplayItem_h | 6 #define DisplayItem_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/graphics/ListContainer.h" | 9 #include "platform/graphics/ListContainer.h" |
10 #include "platform/graphics/paint/DisplayItemClient.h" | 10 #include "platform/graphics/paint/DisplayItemClient.h" |
| 11 #include "public/platform/WebDisplayList.h" |
11 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" |
12 #include "wtf/PassOwnPtr.h" | 13 #include "wtf/PassOwnPtr.h" |
13 | 14 |
14 #ifndef NDEBUG | 15 #ifndef NDEBUG |
15 #include "wtf/text/StringBuilder.h" | 16 #include "wtf/text/StringBuilder.h" |
16 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
17 #endif | 18 #endif |
18 | 19 |
19 | 20 |
20 namespace blink { | 21 namespace blink { |
21 | 22 |
22 class GraphicsContext; | 23 class GraphicsContext; |
23 class WebDisplayItemList; | 24 class WebDisplayItemList; |
24 | 25 |
25 class PLATFORM_EXPORT DisplayItem { | 26 class PLATFORM_EXPORT DisplayItem : public WebDisplayItem { |
26 public: | 27 public: |
27 enum { | 28 enum { |
28 // Must be kept in sync with core/paint/PaintPhase.h. | 29 // Must be kept in sync with core/paint/PaintPhase.h. |
29 PaintPhaseMax = 12, | 30 PaintPhaseMax = 12, |
30 }; | 31 }; |
31 | 32 |
32 // A display item type uniquely identifies a display item of a client. | 33 // A display item type uniquely identifies a display item of a client. |
33 // Some display item types can be categorized using the following directives
: | 34 // Some display item types can be categorized using the following directives
: |
34 // - In enum Type: | 35 // - In enum Type: |
35 // - enum value <Category>First; | 36 // - enum value <Category>First; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; | 366 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; |
366 #endif | 367 #endif |
367 | 368 |
368 private: | 369 private: |
369 bool isEnd() const final { return true; } | 370 bool isEnd() const final { return true; } |
370 }; | 371 }; |
371 | 372 |
372 } // namespace blink | 373 } // namespace blink |
373 | 374 |
374 #endif // DisplayItem_h | 375 #endif // DisplayItem_h |
OLD | NEW |