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

Unified Diff: Source/core/html/HTMLCanvasElement.h

Issue 255563004: Implement "Save image as" for canvas (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.cpp » ('j') | Source/core/html/HTMLCanvasElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.h
diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
index 67d374af52a8b9630e63aee72d23b573d9acd0b5..d168dc759aaf9c9234f77807cd39d2b94d9593fb 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -114,7 +114,7 @@ public:
ImageBuffer* buffer() const;
Image* copiedImage() const;
void clearCopiedImage();
- PassRefPtrWillBeRawPtr<ImageData> getImageData();
+ PassRefPtrWillBeRawPtr<ImageData> getImageData() const;
void makePresentationCopy();
void clearPresentationCopy();
@@ -132,6 +132,8 @@ public:
bool shouldAccelerate(const IntSize&) const;
+ virtual const AtomicString imageSourceURL() const OVERRIDE;
+
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
// DocumentVisibilityObserver implementation
@@ -168,6 +170,8 @@ private:
void updateExternallyAllocatedMemory() const;
+ String toDataURLInternal(const String& mimeType, const double* quality) const;
+
HashSet<CanvasObserver*> m_observers;
IntSize m_size;
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.cpp » ('j') | Source/core/html/HTMLCanvasElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698