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 |