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

Unified Diff: experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h (revision 9765)
+++ experimental/PdfViewer/autogen/SkPdfStandardSecurityHandlerDictionary_autogen.h (working copy)
@@ -536,13 +536,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL));
}
- double R() const {
- double ret;
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ double R() const;
/** (Required) A 32-byte string, based on both the owner and user passwords, that is used in
* computing the encryption key and in determining whether a valid owner password was
* entered. For more information, see "Encryption Key Algorithm" on page 78 and "Pass-
@@ -552,13 +546,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", NULL));
}
- std::string O() const {
- std::string ret;
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return "";
- }
-
+ std::string O() const;
/** (Required) A 32-byte string, based on the user password, that is used in determining
* whether to prompt the user for a password and, if so, whether a valid user or owner pass-
* word was entered. For more information, see "Password Algorithms" on page 79.
@@ -567,13 +555,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", NULL));
}
- std::string U() const {
- std::string ret;
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return "";
- }
-
+ std::string U() const;
/** (Required) A set of flags specifying which operations are permitted when the document is
* opened with user access (see Table 3.15).
**/
@@ -581,13 +563,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL));
}
- long P() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long P() const;
};
#endif // __DEFINED__SkPdfStandardSecurityHandlerDictionary

Powered by Google App Engine
This is Rietveld 408576698