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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfMovieDictionary_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 "SkPdfMovieDictionary_autogen.h"
9 #include "SkPdfNativeDoc.h"
10
11 SkPdfFileSpec SkPdfMovieDictionary::F(SkPdfNativeDoc* doc) {
12 SkPdfNativeObject* ret = get("F", "");
13 if (doc) {ret = doc->resolveReference(ret);}
14 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->fileSpecValue();
15 // TODO(edisonn): warn about missing required field, assert for known good pdf s
16 return SkPdfFileSpec();
17 }
18
19 bool SkPdfMovieDictionary::has_F() const {
20 return get("F", "") != NULL;
21 }
22
23 SkPdfArray* SkPdfMovieDictionary::Aspect(SkPdfNativeDoc* doc) {
24 SkPdfNativeObject* ret = get("Aspect", "");
25 if (doc) {ret = doc->resolveReference(ret);}
26 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
27 // TODO(edisonn): warn about missing default value for optional fields
28 return NULL;
29 }
30
31 bool SkPdfMovieDictionary::has_Aspect() const {
32 return get("Aspect", "") != NULL;
33 }
34
35 int64_t SkPdfMovieDictionary::Rotate(SkPdfNativeDoc* doc) {
36 SkPdfNativeObject* ret = get("Rotate", "");
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 SkPdfMovieDictionary::has_Rotate() const {
44 return get("Rotate", "") != NULL;
45 }
46
47 bool SkPdfMovieDictionary::isPosterABoolean(SkPdfNativeDoc* doc) {
48 SkPdfNativeObject* ret = get("Poster", "");
49 if (doc) {ret = doc->resolveReference(ret);}
50 return ret != NULL && ret->isBoolean();
51 }
52
53 bool SkPdfMovieDictionary::getPosterAsBoolean(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("Poster", "");
55 if (doc) {ret = doc->resolveReference(ret);}
56 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
57 // TODO(edisonn): warn about missing default value for optional fields
58 return false;
59 }
60
61 bool SkPdfMovieDictionary::isPosterAStream(SkPdfNativeDoc* doc) {
62 SkPdfNativeObject* ret = get("Poster", "");
63 if (doc) {ret = doc->resolveReference(ret);}
64 return ret != NULL && ret->hasStream();
65 }
66
67 SkPdfStream* SkPdfMovieDictionary::getPosterAsStream(SkPdfNativeDoc* doc) {
68 SkPdfNativeObject* ret = get("Poster", "");
69 if (doc) {ret = doc->resolveReference(ret);}
70 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
71 // TODO(edisonn): warn about missing default value for optional fields
72 return NULL;
73 }
74
75 bool SkPdfMovieDictionary::has_Poster() const {
76 return get("Poster", "") != NULL;
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698