| 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" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 #ifndef NDEBUG | 347 #ifndef NDEBUG |
| 348 WTF::String m_clientDebugString; | 348 WTF::String m_clientDebugString; |
| 349 #endif | 349 #endif |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 class PLATFORM_EXPORT PairedBeginDisplayItem : public DisplayItem { | 352 class PLATFORM_EXPORT PairedBeginDisplayItem : public DisplayItem { |
| 353 protected: | 353 protected: |
| 354 PairedBeginDisplayItem(const DisplayItemClientWrapper& client, Type type) :
DisplayItem(client, type) { } | 354 PairedBeginDisplayItem(const DisplayItemClientWrapper& client, Type type) :
DisplayItem(client, type) { } |
| 355 | 355 |
| 356 private: | 356 private: |
| 357 virtual bool isBegin() const override final { return true; } | 357 bool isBegin() const final { return true; } |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 class PLATFORM_EXPORT PairedEndDisplayItem : public DisplayItem { | 360 class PLATFORM_EXPORT PairedEndDisplayItem : public DisplayItem { |
| 361 protected: | 361 protected: |
| 362 PairedEndDisplayItem(const DisplayItemClientWrapper& client, Type type) : Di
splayItem(client, type) { } | 362 PairedEndDisplayItem(const DisplayItemClientWrapper& client, Type type) : Di
splayItem(client, type) { } |
| 363 | 363 |
| 364 #if ENABLE(ASSERT) | 364 #if ENABLE(ASSERT) |
| 365 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override
= 0; | 365 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; |
| 366 #endif | 366 #endif |
| 367 | 367 |
| 368 private: | 368 private: |
| 369 virtual bool isEnd() const override final { return true; } | 369 bool isEnd() const final { return true; } |
| 370 }; | 370 }; |
| 371 | 371 |
| 372 } // namespace blink | 372 } // namespace blink |
| 373 | 373 |
| 374 #endif // DisplayItem_h | 374 #endif // DisplayItem_h |
| OLD | NEW |