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

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

Issue 12466008: PDF: add support for named destinations (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFPage.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 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFPage_DEFINED 10 #ifndef SkPDFPage_DEFINED
(...skipping 30 matching lines...) Expand all
41 * @param catalog The catalog to add page content objects to. 41 * @param catalog The catalog to add page content objects to.
42 * @param firstPage Indicate if this is the first page of a document. 42 * @param firstPage Indicate if this is the first page of a document.
43 * @param resourceObjects All the resource objects (recursively) used on 43 * @param resourceObjects All the resource objects (recursively) used on
44 * the page are added to this array. This gives 44 * the page are added to this array. This gives
45 * the caller a chance to deduplicate resources 45 * the caller a chance to deduplicate resources
46 * across pages. 46 * across pages.
47 */ 47 */
48 void finalizePage(SkPDFCatalog* catalog, bool firstPage, 48 void finalizePage(SkPDFCatalog* catalog, bool firstPage,
49 SkTDArray<SkPDFObject*>* resourceObjects); 49 SkTDArray<SkPDFObject*>* resourceObjects);
50 50
51 /** Add destinations for this page to the supplied dictionary.
52 * @param dict Dictionary to add destinations to.
53 */
54 void appendDestinations(SkPDFDict* dict);
55
51 /** Determine the size of the page content and store to the catalog 56 /** Determine the size of the page content and store to the catalog
52 * the offsets of all nonresource-indirect objects that make up the page 57 * the offsets of all nonresource-indirect objects that make up the page
53 * content. This must be called before emitPage(), but after finalizePage. 58 * content. This must be called before emitPage(), but after finalizePage.
54 * @param catalog The catalog to add the object offsets to. 59 * @param catalog The catalog to add the object offsets to.
55 * @param fileOffset The file offset where the page content will be 60 * @param fileOffset The file offset where the page content will be
56 * emitted. 61 * emitted.
57 */ 62 */
58 off_t getPageSize(SkPDFCatalog* catalog, off_t fileOffset); 63 off_t getPageSize(SkPDFCatalog* catalog, off_t fileOffset);
59 64
60 /** Output the page content to the passed stream. 65 /** Output the page content to the passed stream.
(...skipping 30 matching lines...) Expand all
91 96
92 private: 97 private:
93 // Multiple pages may reference the content. 98 // Multiple pages may reference the content.
94 SkAutoTUnref<SkPDFDevice> fDevice; 99 SkAutoTUnref<SkPDFDevice> fDevice;
95 100
96 // Once the content is finalized, put it into a stream for output. 101 // Once the content is finalized, put it into a stream for output.
97 SkAutoTUnref<SkPDFStream> fContentStream; 102 SkAutoTUnref<SkPDFStream> fContentStream;
98 }; 103 };
99 104
100 #endif 105 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698