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

Side by Side Diff: ppapi/c/private/ppb_pdf.h

Issue 9139024: Adding functionality to print PDF embedded in the html page. (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 | « chrome/renderer/print_web_view_helper.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_C_PRIVATE_PPB_PDF_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_PDF_H_
6 #define PPAPI_C_PRIVATE_PPB_PDF_H_ 6 #define PPAPI_C_PRIVATE_PPB_PDF_H_
7 7
8 #include "ppapi/c/dev/ppb_font_dev.h" 8 #include "ppapi/c/dev/ppb_font_dev.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
12 12
13 #define PPB_PDF_INTERFACE "PPB_PDF;1" 13 #define PPB_PDF_INTERFACE "PPB_PDF;1"
piman 2012/01/12 23:11:15 The interface needs to rev if the interface change
14 14
15 // From the public PPB_Font_Dev file. 15 // From the public PPB_Font_Dev file.
16 struct PP_FontDescription_Dev; 16 struct PP_FontDescription_Dev;
17 17
18 typedef enum { 18 typedef enum {
19 PP_RESOURCESTRING_PDFGETPASSWORD = 0, 19 PP_RESOURCESTRING_PDFGETPASSWORD = 0,
20 PP_RESOURCESTRING_PDFLOADING = 1, 20 PP_RESOURCESTRING_PDFLOADING = 1,
21 PP_RESOURCESTRING_PDFLOAD_FAILED = 2, 21 PP_RESOURCESTRING_PDFLOAD_FAILED = 2,
22 PP_RESOURCESTRING_PDFPROGRESSLOADING = 3 22 PP_RESOURCESTRING_PDFPROGRESSLOADING = 3
23 } PP_ResourceString; 23 } PP_ResourceString;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void (*HistogramPDFPageCount)(int count); 151 void (*HistogramPDFPageCount)(int count);
152 152
153 // Notifies the browser that the given action has been performed. 153 // Notifies the browser that the given action has been performed.
154 void (*UserMetricsRecordAction)(struct PP_Var action); 154 void (*UserMetricsRecordAction)(struct PP_Var action);
155 155
156 // Notifies the browser that the PDF has an unsupported feature. 156 // Notifies the browser that the PDF has an unsupported feature.
157 void (*HasUnsupportedFeature)(PP_Instance instance); 157 void (*HasUnsupportedFeature)(PP_Instance instance);
158 158
159 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. 159 // Invoke SaveAs... dialog, similar to the right-click or wrench menu.
160 void (*SaveAs)(PP_Instance instance); 160 void (*SaveAs)(PP_Instance instance);
161
162 // Invoke Print dialog for plugin.
163 void (*Print)(PP_Instance instance);
161 }; 164 };
162 165
163 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ 166 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698