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

Side by Side Diff: src/pdf/SkPDFDocument.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 | « include/core/SkDocument.h ('k') | src/pdf/SkPDFDocument.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkPDFDocument_DEFINED 7 #ifndef SkPDFDocument_DEFINED
8 #define SkPDFDocument_DEFINED 8 #define SkPDFDocument_DEFINED
9 9
10 #include "SkDocument.h" 10 #include "SkDocument.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void (*)(SkWStream*, bool), 48 void (*)(SkWStream*, bool),
49 SkScalar, 49 SkScalar,
50 const SkDocument::PDFMetadata&, 50 const SkDocument::PDFMetadata&,
51 sk_sp<SkPixelSerializer>, 51 sk_sp<SkPixelSerializer>,
52 bool); 52 bool);
53 virtual ~SkPDFDocument(); 53 virtual ~SkPDFDocument();
54 SkCanvas* onBeginPage(SkScalar, SkScalar, const SkRect&) override; 54 SkCanvas* onBeginPage(SkScalar, SkScalar, const SkRect&) override;
55 void onEndPage() override; 55 void onEndPage() override;
56 bool onClose(SkWStream*) override; 56 bool onClose(SkWStream*) override;
57 void onAbort() override; 57 void onAbort() override;
58 #ifdef SK_SUPPORT_LEGACY_DOCUMENT_API 58
59 void setMetadata(const SkDocument::Attribute[],
60 int,
61 const SkTime::DateTime*,
62 const SkTime::DateTime*) override;
63 #endif // SK_SUPPORT_LEGACY_DOCUMENT_API
64 /** 59 /**
65 Serialize the object, as well as any other objects it 60 Serialize the object, as well as any other objects it
66 indirectly refers to. If any any other objects have been added 61 indirectly refers to. If any any other objects have been added
67 to the SkPDFObjNumMap without serializing them, they will be 62 to the SkPDFObjNumMap without serializing them, they will be
68 serialized as well. 63 serialized as well.
69 64
70 It might go without saying that objects should not be changed 65 It might go without saying that objects should not be changed
71 after calling serialize, since those changes will be too late. 66 after calling serialize, since those changes will be too late.
72 */ 67 */
73 void serialize(const sk_sp<SkPDFObject>&); 68 void serialize(const sk_sp<SkPDFObject>&);
(...skipping 11 matching lines...) Expand all
85 sk_sp<SkPDFObject> fID; 80 sk_sp<SkPDFObject> fID;
86 sk_sp<SkPDFObject> fXMP; 81 sk_sp<SkPDFObject> fXMP;
87 SkScalar fRasterDpi; 82 SkScalar fRasterDpi;
88 SkDocument::PDFMetadata fMetadata; 83 SkDocument::PDFMetadata fMetadata;
89 bool fPDFA; 84 bool fPDFA;
90 85
91 void reset(); 86 void reset();
92 }; 87 };
93 88
94 #endif // SkPDFDocument_DEFINED 89 #endif // SkPDFDocument_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkDocument.h ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698