Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: webkit/plugins/ppapi/ppp_pdf.h

Issue 9045007: Allow plugins to participate in Chrome context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppapi_webplugin_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_point.h" 9 #include "ppapi/c/pp_point.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 11
12 #define PPP_PDF_INTERFACE_1 "PPP_Pdf;1" 12 #define PPP_PDF_INTERFACE_1 "PPP_Pdf;1"
13 #define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1 13 #define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1
14 14
15 typedef enum {
16 // Rotates the page 90 degrees clockwise from its current orientation.
17 PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CW,
18 // Rotates the page 90 degrees counterclockwise from its current orientation.
19 PP_PRIVATEPAGETRANSFORMTYPE_ROTATE_90_CCW
20 } PP_PrivatePageTransformType;
21 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4);
22
15 struct PPP_Pdf_1 { 23 struct PPP_Pdf_1 {
16 // Returns an absolute URL if the position is over a link. 24 // Returns an absolute URL if the position is over a link.
17 PP_Var (*GetLinkAtPosition)(PP_Instance instance, 25 PP_Var (*GetLinkAtPosition)(PP_Instance instance,
18 PP_Point point); 26 PP_Point point);
27
28 // Requests that the plugin apply the given transform to its view.
29 void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type);
19 }; 30 };
20 31
21 typedef PPP_Pdf_1 PPP_Pdf; 32 typedef PPP_Pdf_1 PPP_Pdf;
22 33
23 #endif // WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_ 34 #endif // WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_webplugin_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698