15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#ifndef PPAPI_C_PRIVATE_PPP_PDF_H_
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define PPAPI_C_PRIVATE_PPP_PDF_H_
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "ppapi/c/pp_instance.h"
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "ppapi/c/pp_point.h"
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "ppapi/c/pp_var.h"
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define PPP_PDF_INTERFACE_1 "PPP_Pdf;1"
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)typedef enum {
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  // Rotates the page 90 degrees clockwise from its current orientation.
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CW,
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  // Rotates the page 90 degrees counterclockwise from its current orientation.
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CCW
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} PP_PrivatePageTransformType;
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4);
225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)struct PPP_Pdf_1 {
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  // Returns an absolute URL if the position is over a link.
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  PP_Var (*GetLinkAtPosition)(PP_Instance instance,
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)                              PP_Point point);
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  // Requests that the plugin apply the given transform to its view.
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type);
305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)};
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)typedef PPP_Pdf_1 PPP_Pdf;
335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // PPAPI_C_PRIVATE_PPP_PDF_H_
35