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

Unified Diff: Source/core/html/canvas/Canvas2DContextAttributes.h

Issue 211503006: Implementation of 2D canvas context lost/restored events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adding missing file Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698