blob: 3e52ad7a4ab80b8df4e34d61f65f9c46c372c082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_PEPPER_PPP_PDF_H_
#define CONTENT_RENDERER_PEPPER_PPP_PDF_H_
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_var.h"
#define PPP_PDF_INTERFACE_1 "PPP_Pdf;1"
#define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1
typedef enum {
// Rotates the page 90 degrees clockwise from its current orientation.
PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CW,
// Rotates the page 90 degrees counterclockwise from its current orientation.
PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CCW
} PP_PrivatePageTransformType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4);
struct PPP_Pdf_1 {
// Returns an absolute URL if the position is over a link.
// Deprecated: The plugin now notifies the host when the cursor is over a
// link.
PP_Var (*GetLinkAtPosition)(PP_Instance instance,
PP_Point point);
// Requests that the plugin apply the given transform to its view.
void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type);
};
typedef PPP_Pdf_1 PPP_Pdf;
#endif // CONTENT_RENDERER_PEPPER_PPP_PDF_H_
|