refactoring for pdf viewer lib

Review URL: https://codereview.chromium.org/17856004

git-svn-id: http://skia.googlecode.com/svn/trunk@9773 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.cpp b/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.cpp
new file mode 100644
index 0000000..85b6802
--- /dev/null
+++ b/experimental/PdfViewer/autogen/SkPdfPSXobjectDictionary_autogen.cpp
@@ -0,0 +1,23 @@
+#include "SkPdfPSXobjectDictionary_autogen.h"
+
+std::string SkPdfPSXobjectDictionary::Type() const {
+  std::string ret;
+  if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
+  // TODO(edisonn): warn about missing required field, assert for known good pdfs
+  return "";
+}
+
+std::string SkPdfPSXobjectDictionary::Subtype() const {
+  std::string ret;
+  if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
+  // TODO(edisonn): warn about missing required field, assert for known good pdfs
+  return "";
+}
+
+SkPdfStream* SkPdfPSXobjectDictionary::Level1() const {
+  SkPdfStream* ret;
+  if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", &ret)) return ret;
+  // TODO(edisonn): warn about missing required field, assert for known good pdfs
+  return NULL;
+}
+