Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / pdf / pdf_engine.h
index ee1cb1f..b5bc95d 100644 (file)
@@ -29,10 +29,7 @@ namespace pp {
 class InputEvent;
 }
 
-#define kBackgroundColorR 204
-#define kBackgroundColorG 204
-#define kBackgroundColorB 204
-#define kBackgroundColorA 255
+const uint32 kBackgroundColor = 0xFFCCCCCC;
 
 namespace chrome_pdf {
 
@@ -308,10 +305,16 @@ class PDFEngineExports {
                                      int page_number,
                                      const RenderingSettings& settings,
                                      void* bitmap_buffer) = 0;
+
   virtual bool GetPDFDocInfo(const void* pdf_buffer,
                              int buffer_size,
                              int* page_count,
                              double* max_page_width) = 0;
+
+  // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
+  virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
+                                     int pdf_buffer_size, int page_number,
+                                     double* width, double* height) = 0;
 };
 
 }  // namespace chrome_pdf