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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_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 "SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h"
9 #include "SkPdfNativeDoc.h"
10
11 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Predictor(SkPdfNativeDoc* doc) {
12 SkPdfNativeObject* ret = get("Predictor", "");
13 if (doc) {ret = doc->resolveReference(ret);}
14 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
15 // TODO(edisonn): warn about missing default value for optional fields
16 return 0;
17 }
18
19 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Predictor() const {
20 return get("Predictor", "") != NULL;
21 }
22
23 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Colors(SkPdfNativeDoc* do c) {
24 SkPdfNativeObject* ret = get("Colors", "");
25 if (doc) {ret = doc->resolveReference(ret);}
26 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
27 // TODO(edisonn): warn about missing default value for optional fields
28 return 0;
29 }
30
31 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Colors() const {
32 return get("Colors", "") != NULL;
33 }
34
35 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::BitsPerComponent(SkPdfNat iveDoc* doc) {
36 SkPdfNativeObject* ret = get("BitsPerComponent", "");
37 if (doc) {ret = doc->resolveReference(ret);}
38 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
39 // TODO(edisonn): warn about missing default value for optional fields
40 return 0;
41 }
42
43 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_BitsPerComponent() const {
44 return get("BitsPerComponent", "") != NULL;
45 }
46
47 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Columns(SkPdfNativeDoc* d oc) {
48 SkPdfNativeObject* ret = get("Columns", "");
49 if (doc) {ret = doc->resolveReference(ret);}
50 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
51 // TODO(edisonn): warn about missing default value for optional fields
52 return 0;
53 }
54
55 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Columns() const {
56 return get("Columns", "") != NULL;
57 }
58
59 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::EarlyChange(SkPdfNativeDo c* doc) {
60 SkPdfNativeObject* ret = get("EarlyChange", "");
61 if (doc) {ret = doc->resolveReference(ret);}
62 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
63 // TODO(edisonn): warn about missing default value for optional fields
64 return 0;
65 }
66
67 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_EarlyChange() const {
68 return get("EarlyChange", "") != NULL;
69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698