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

Side by Side Diff: src/pdf/SkPDFMetadata.h

Issue 2299653002: SkDocument: turn off SK_SUPPORT_LEGACY_DOCUMENT_API (Closed)
Patch Set: delete all LEGACY_DOCUMENT_API Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPDFMetadata_DEFINED 8 #ifndef SkPDFMetadata_DEFINED
9 #define SkPDFMetadata_DEFINED 9 #define SkPDFMetadata_DEFINED
10 10
11 #include "SkDocument.h" 11 #include "SkDocument.h"
12 12
13 class SkPDFObject; 13 class SkPDFObject;
14 14
15 namespace SkPDFMetadata { 15 namespace SkPDFMetadata {
16 sk_sp<SkPDFObject> MakeDocumentInformationDict(const SkDocument::PDFMetadata&); 16 sk_sp<SkPDFObject> MakeDocumentInformationDict(const SkDocument::PDFMetadata&);
17 17
18 struct UUID { 18 struct UUID {
19 uint8_t fData[16]; 19 uint8_t fData[16];
20 }; 20 };
21 21
22 UUID CreateUUID(const SkDocument::PDFMetadata&); 22 UUID CreateUUID(const SkDocument::PDFMetadata&);
23 23
24 sk_sp<SkPDFObject> MakePdfId(const UUID& doc, const UUID& instance); 24 sk_sp<SkPDFObject> MakePdfId(const UUID& doc, const UUID& instance);
25 25
26 sk_sp<SkPDFObject> MakeXMPObject(const SkDocument::PDFMetadata&, 26 sk_sp<SkPDFObject> MakeXMPObject(const SkDocument::PDFMetadata&,
27 const UUID& doc, 27 const UUID& doc,
28 const UUID& instance); 28 const UUID& instance);
29
30 #ifdef SK_SUPPORT_LEGACY_DOCUMENT_API
31 void SetMetadataByKey(const SkString& key,
32 const SkString& value,
33 SkDocument::PDFMetadata*);
34 #endif
35 } 29 }
36 #endif // SkPDFMetadata_DEFINED 30 #endif // SkPDFMetadata_DEFINED
OLDNEW
« 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