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