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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfSeparationDictionary_autogen.cpp

Issue 1266093003: Remove experimental/PdfViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-03 (Monday) 10:43:56 EDT Created 5 years, 4 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkPdfSeparationDictionary_autogen.h"
9 #include "SkPdfNativeDoc.h"
10
11 SkPdfArray* SkPdfSeparationDictionary::Pages(SkPdfNativeDoc* doc) {
12 SkPdfNativeObject* ret = get("Pages", "");
13 if (doc) {ret = doc->resolveReference(ret);}
14 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
15 // TODO(edisonn): warn about missing required field, assert for known good pdf s
16 return NULL;
17 }
18
19 bool SkPdfSeparationDictionary::has_Pages() const {
20 return get("Pages", "") != NULL;
21 }
22
23 bool SkPdfSeparationDictionary::isDeviceColorantAName(SkPdfNativeDoc* doc) {
24 SkPdfNativeObject* ret = get("DeviceColorant", "");
25 if (doc) {ret = doc->resolveReference(ret);}
26 return ret != NULL && ret->isName();
27 }
28
29 SkString SkPdfSeparationDictionary::getDeviceColorantAsName(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("DeviceColorant", "");
31 if (doc) {ret = doc->resolveReference(ret);}
32 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
33 // TODO(edisonn): warn about missing required field, assert for known good pdf s
34 return SkString();
35 }
36
37 bool SkPdfSeparationDictionary::isDeviceColorantAString(SkPdfNativeDoc* doc) {
38 SkPdfNativeObject* ret = get("DeviceColorant", "");
39 if (doc) {ret = doc->resolveReference(ret);}
40 return ret != NULL && ret->isAnyString();
41 }
42
43 SkString SkPdfSeparationDictionary::getDeviceColorantAsString(SkPdfNativeDoc* do c) {
44 SkPdfNativeObject* ret = get("DeviceColorant", "");
45 if (doc) {ret = doc->resolveReference(ret);}
46 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
47 // TODO(edisonn): warn about missing required field, assert for known good pdf s
48 return SkString();
49 }
50
51 bool SkPdfSeparationDictionary::has_DeviceColorant() const {
52 return get("DeviceColorant", "") != NULL;
53 }
54
55 SkPdfArray* SkPdfSeparationDictionary::ColorSpace(SkPdfNativeDoc* doc) {
56 SkPdfNativeObject* ret = get("ColorSpace", "");
57 if (doc) {ret = doc->resolveReference(ret);}
58 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
59 // TODO(edisonn): warn about missing default value for optional fields
60 return NULL;
61 }
62
63 bool SkPdfSeparationDictionary::has_ColorSpace() const {
64 return get("ColorSpace", "") != NULL;
65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698