Index: Source/core/html/canvas/Canvas2DContextAttributes.h |
diff --git a/Source/core/html/canvas/Canvas2DContextAttributes.h b/Source/core/html/canvas/Canvas2DContextAttributes.h |
index e777ef807783432a629917090d7929fcfddec7d3..dab44564297bd7f44302039f2e7d57b4d6bb44da 100644 |
--- a/Source/core/html/canvas/Canvas2DContextAttributes.h |
+++ b/Source/core/html/canvas/Canvas2DContextAttributes.h |
@@ -33,6 +33,11 @@ |
namespace WebCore { |
+enum Canvas2DContextStorage { |
+ PersistentStorage, |
+ DiscardableStorage |
+}; |
+ |
class Canvas2DContextAttributes : public CanvasContextAttributes, public ScriptWrappable { |
public: |
virtual ~Canvas2DContextAttributes(); |
@@ -44,10 +49,15 @@ public: |
bool alpha() const; |
void setAlpha(bool); |
+ String storage() const; |
+ void setStorage(const String&); |
+ Canvas2DContextStorage parsedStorage() const; |
+ |
protected: |
Canvas2DContextAttributes(); |
bool m_alpha; |
+ Canvas2DContextStorage m_storage; |
}; |
} // namespace WebCore |