| 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 "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 FloatClipSelfOutline, | 85 FloatClipSelfOutline, |
| 86 EndFloatClip, | 86 EndFloatClip, |
| 87 BeginClipPath, | 87 BeginClipPath, |
| 88 EndClipPath, | 88 EndClipPath, |
| 89 VideoBitmap, | 89 VideoBitmap, |
| 90 ImageBitmap, | 90 ImageBitmap, |
| 91 DragImage, | 91 DragImage, |
| 92 LinkHighlight, | 92 LinkHighlight, |
| 93 PageWidgetDelegateClip, | 93 PageWidgetDelegateClip, |
| 94 PageWidgetDelegateBackgroundFallback, | 94 PageWidgetDelegateBackgroundFallback, |
| 95 ViewBackground | 95 ViewBackground, |
| 96 SVGFilter |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 // Create a dummy display item which just holds the id but has no display op
eration. | 99 // Create a dummy display item which just holds the id but has no display op
eration. |
| 99 // It helps a CachedDisplayItem to match the corresponding original empty di
splay item. | 100 // It helps a CachedDisplayItem to match the corresponding original empty di
splay item. |
| 100 static PassOwnPtr<DisplayItem> create(DisplayItemClient client, Type type) {
return adoptPtr(new DisplayItem(client, type)); } | 101 static PassOwnPtr<DisplayItem> create(DisplayItemClient client, Type type) {
return adoptPtr(new DisplayItem(client, type)); } |
| 101 | 102 |
| 102 virtual ~DisplayItem() { } | 103 virtual ~DisplayItem() { } |
| 103 | 104 |
| 104 virtual void replay(GraphicsContext*) { } | 105 virtual void replay(GraphicsContext*) { } |
| 105 | 106 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const Type type; | 143 const Type type; |
| 143 } m_id; | 144 } m_id; |
| 144 #ifndef NDEBUG | 145 #ifndef NDEBUG |
| 145 WTF::String m_clientDebugString; | 146 WTF::String m_clientDebugString; |
| 146 #endif | 147 #endif |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } | 150 } |
| 150 | 151 |
| 151 #endif // DisplayItem_h | 152 #endif // DisplayItem_h |
| OLD | NEW |