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

Unified Diff: src/pdf/SkPDFMetadata.h

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 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 | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFMetadata.h
diff --git a/src/pdf/SkPDFMetadata.h b/src/pdf/SkPDFMetadata.h
index 663dc24b399af802887ab6eaac96c462c219d401..97ce71721aed80c87b59697acbb72af026b040aa 100644
--- a/src/pdf/SkPDFMetadata.h
+++ b/src/pdf/SkPDFMetadata.h
@@ -13,19 +13,25 @@
class SkPDFObject;
-struct SkPDFMetadata {
- SkTArray<SkDocument::Attribute> fInfo;
- std::unique_ptr<const SkTime::DateTime> fCreation;
- std::unique_ptr<const SkTime::DateTime> fModified;
-
- SkPDFObject* createDocumentInformationDict() const;
-
- struct UUID {
- uint8_t fData[16];
- };
- UUID uuid() const;
- static SkPDFObject* CreatePdfId(const UUID& doc, const UUID& instance);
- SkPDFObject* createXMPObject(const UUID& doc, const UUID& instance) const;
+namespace SkPDFMetadata {
+sk_sp<SkPDFObject> MakeDocumentInformationDict(const SkDocument::PDFMetadata&);
+
+struct UUID {
+ uint8_t fData[16];
};
+UUID CreateUUID(const SkDocument::PDFMetadata&);
+
+sk_sp<SkPDFObject> MakePdfId(const UUID& doc, const UUID& instance);
+
+sk_sp<SkPDFObject> MakeXMPObject(const SkDocument::PDFMetadata&,
+ const UUID& doc,
+ const UUID& instance);
+
+#ifdef SK_SUPPORT_LEGACY_DOCUMENT_API
+void SetMetadataByKey(const SkString& key,
+ const SkString& value,
+ SkDocument::PDFMetadata*);
+#endif
+}
#endif // SkPDFMetadata_DEFINED
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698