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

Unified Diff: include/core/SkDocument.h

Issue 2074583003: SkPDF: allow overriding Producer metadata (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-16 (Thursday) 11:13:35 EDT Created 4 years, 6 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 | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDocument.h
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h
index 9eed304a4030d45201de4b52b1ab02762c6550a1..042cf9aef26729ee7ca9d0253907d98c15676e9e 100644
--- a/include/core/SkDocument.h
+++ b/include/core/SkDocument.h
@@ -47,12 +47,23 @@ public:
* Optional metadata to be passed into the PDF factory function.
*/
struct PDFMetadata {
+ /** The document’s title. */
SkString fTitle;
+ /** The name of the person who created the document. */
SkString fAuthor;
+ /** The subject of the document. */
SkString fSubject;
+ /** Keywords associated with the document. */
reed1 2016/06/16 18:43:49 How are the words delineated?
hal.canary 2016/06/30 14:13:03 This is unspecified by the standard.
hal.canary 2016/06/30 14:44:20 New verbage: /* * Keywords associated with the d
SkString fKeywords;
+ /** If the document was converted to PDF from another format,
reed1 2016/06/16 18:43:49 nit: 1. our comments have the closing */ on its o
hal.canary 2016/06/30 14:13:03 Done.
+ the name of the conforming product that created the
+ original document from which it was converted. */
reed1 2016/06/16 18:43:49 If Creator means a tool/product, should we conside
hal.canary 2016/06/30 14:13:03 I would rather match what the standard says.
SkString fCreator;
+ /** Leave fProducer empty to get the default, correct value. */
reed1 2016/06/16 18:43:49 Lets first document what fProduce means, and then
hal.canary 2016/06/30 14:13:03 Done.
+ SkString fProducer;
+ /** The date and time the document was created. */
OptionalTimestamp fCreation;
+ /** The date and time the document was most recently modified. */
OptionalTimestamp fModified;
};
« no previous file with comments | « no previous file | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698