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

Side by Side Diff: Source/platform/graphics/paint/DisplayItem.h

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
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
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/CompositingDisplayItem.h ('k') | Source/platform/graphics/paint/DisplayItemListTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698