Pepper_47_C_interfaces
ppp_pdf.h
Go to the documentation of this file.
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_C_PRIVATE_PPP_PDF_H_
6 #define PPAPI_C_PRIVATE_PPP_PDF_H_
7 
8 #include "ppapi/c/dev/pp_print_settings_dev.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_point.h"
11 #include "ppapi/c/pp_var.h"
12 
13 #define PPP_PDF_INTERFACE_1 "PPP_Pdf;1"
14 #define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1
15 
16 typedef enum {
17  // Rotates the page 90 degrees clockwise from its current orientation.
19  // Rotates the page 90 degrees counterclockwise from its current orientation.
23 
24 typedef enum {
32 
34  // Returns whether scaling is disabled. Returns same information as the
35  // PPP_Printing_Dev's method IsScalingDiabled().
37 
38  // Number of copies to be printed.
39  int32_t copies;
40 
41  // DuplexMode to be used for printing.
43 
44  // True if all the pages in the PDF are the same size.
46 
47  // Only valid if |is_page_size_uniform| is true. The page size.
49 };
51 
52 struct PPP_Pdf_1_1 {
53  // Returns an absolute URL if the position is over a link.
55  PP_Point point);
56 
57  // Requests that the plugin apply the given transform to its view.
59 
60  // Return true if print preset options are updated from document.
62  PP_Instance instance,
64 };
65 
67 
68 #endif // PPAPI_C_PRIVATE_PPP_PDF_H_
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4)
void(* Transform)(PP_Instance instance, PP_PrivatePageTransformType type)
Definition: ppp_pdf.h:58
PP_PrivateDuplexMode_Dev
Definition: ppp_pdf.h:24
PPP_Pdf_1_1 PPP_Pdf
Definition: ppp_pdf.h:66
PP_Bool(* GetPrintPresetOptionsFromDocument)(PP_Instance instance, PP_PdfPrintPresetOptions_Dev *options)
Definition: ppp_pdf.h:61
Definition: pp_var.h:166
int32_t PP_Instance
Definition: pp_instance.h:34
PP_PrivateDuplexMode_Dev duplex
Definition: ppp_pdf.h:42
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 24)
PP_Bool
Definition: pp_bool.h:30
PP_PrivatePageTransformType
Definition: ppp_pdf.h:16
PP_Var(* GetLinkAtPosition)(PP_Instance instance, PP_Point point)
Definition: ppp_pdf.h:54