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

Side by Side Diff: experimental/PdfViewer/inc/SkPdfRenderer.h

Issue 226183018: SkNonCopyable should be used with private inheritance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: name resolution Created 6 years, 8 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 | « experimental/PdfViewer/inc/SkPdfContext.h ('k') | experimental/SkiaExamples/SkExample.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 8
9 #ifndef SkPdfRenderer_DEFINED 9 #ifndef SkPdfRenderer_DEFINED
10 #define SkPdfRenderer_DEFINED 10 #define SkPdfRenderer_DEFINED
(...skipping 11 matching lines...) Expand all
22 enum SkPdfContent { 22 enum SkPdfContent {
23 kNoForms_SkPdfContent, 23 kNoForms_SkPdfContent,
24 kAll_SkPdfContent, 24 kAll_SkPdfContent,
25 }; 25 };
26 26
27 /** \class SkPdfRenderer 27 /** \class SkPdfRenderer
28 * 28 *
29 * The SkPdfRenderer class is used to render a PDF into canvas. 29 * The SkPdfRenderer class is used to render a PDF into canvas.
30 * 30 *
31 */ 31 */
32 class SkPdfRenderer : public SkNoncopyable { 32 class SkPdfRenderer : SkNoncopyable {
33 public: 33 public:
34 // Create a new renderer from a stream. 34 // Create a new renderer from a stream.
35 // TODO(edisonn): replace it with a SkSmartStream which would know to to eff iciently 35 // TODO(edisonn): replace it with a SkSmartStream which would know to to eff iciently
36 // deal with a HTTP stream. 36 // deal with a HTTP stream.
37 // FIXME: Untested. 37 // FIXME: Untested.
38 static SkPdfRenderer* CreateFromStream(SkStream*); 38 static SkPdfRenderer* CreateFromStream(SkStream*);
39 // Create a new renderer from a file. 39 // Create a new renderer from a file.
40 static SkPdfRenderer* CreateFromFile(const char* filename); 40 static SkPdfRenderer* CreateFromFile(const char* filename);
41 41
42 ~SkPdfRenderer(); 42 ~SkPdfRenderer();
(...skipping 28 matching lines...) Expand all
71 double dpi = 72.0); 71 double dpi = 72.0);
72 72
73 // TODO(edisonn): add options to render forms, checkboxes, ... 73 // TODO(edisonn): add options to render forms, checkboxes, ...
74 // TODO(edisonn): Add API for Forms viewing and editing 74 // TODO(edisonn): Add API for Forms viewing and editing
75 // e.g. SkBitmap getPage(int page); 75 // e.g. SkBitmap getPage(int page);
76 // int formsCount(); 76 // int formsCount();
77 // SkForm getForm(int formID); // SkForm(SkRect, .. other data) 77 // SkForm getForm(int formID); // SkForm(SkRect, .. other data)
78 // TODO (edisonn): Add intend when loading pdf, for example: for viewing, for pa rsing content, ... 78 // TODO (edisonn): Add intend when loading pdf, for example: for viewing, for pa rsing content, ...
79 79
80 #endif // SkPdfRenderer_DEFINED 80 #endif // SkPdfRenderer_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/inc/SkPdfContext.h ('k') | experimental/SkiaExamples/SkExample.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698