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

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

Issue 554893002: [WORK_IN_PROGRESS] PDF::Save() fix for out-of-process-pdf. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix for constrained windows Created 6 years, 3 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
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | ppapi/cpp/private/pdf.h » ('j') | 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_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Use UMA so we know average pdf page count. 137 // Use UMA so we know average pdf page count.
138 void (*HistogramPDFPageCount)(PP_Instance instance, int count); 138 void (*HistogramPDFPageCount)(PP_Instance instance, int count);
139 139
140 // Notifies the browser that the given action has been performed. 140 // Notifies the browser that the given action has been performed.
141 void (*UserMetricsRecordAction)(PP_Instance instance, struct PP_Var action); 141 void (*UserMetricsRecordAction)(PP_Instance instance, struct PP_Var action);
142 142
143 // Notifies the browser that the PDF has an unsupported feature. 143 // Notifies the browser that the PDF has an unsupported feature.
144 void (*HasUnsupportedFeature)(PP_Instance instance); 144 void (*HasUnsupportedFeature)(PP_Instance instance);
145 145
146 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. 146 // Invoke SaveAs... dialog, similar to the right-click or wrench menu.
147 void (*SaveAs)(PP_Instance instance); 147 void (*SaveAs)(PP_Instance instance, PP_Var url);
148 148
149 // Invoke Print dialog for plugin. 149 // Invoke Print dialog for plugin.
150 void (*Print)(PP_Instance instance); 150 void (*Print)(PP_Instance instance);
151 151
152 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature); 152 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature);
153 153
154 // Returns a resource image appropriate for a device with |scale| density. 154 // Returns a resource image appropriate for a device with |scale| density.
155 // Returns 0 (NULL resource) if there is no resource at that scale 155 // Returns 0 (NULL resource) if there is no resource at that scale
156 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, 156 PP_Resource (*GetResourceImageForScale)(PP_Instance instance,
157 PP_ResourceImage image_id, 157 PP_ResourceImage image_id,
158 float scale); 158 float scale);
159 159
160 // Invoke password dialog for plugin. 160 // Invoke password dialog for plugin.
161 struct PP_Var (*ModalPromptForPassword)(PP_Instance instance, 161 struct PP_Var (*ModalPromptForPassword)(PP_Instance instance,
162 struct PP_Var message); 162 struct PP_Var message);
163 163
164 // Returns PP_TRUE if the plugin is out of process. 164 // Returns PP_TRUE if the plugin is out of process.
165 PP_Bool (*IsOutOfProcess)(PP_Instance instance); 165 PP_Bool (*IsOutOfProcess)(PP_Instance instance);
166 166
167 // Sets the selected text of the plugin. 167 // Sets the selected text of the plugin.
168 void(*SetSelectedText)(PP_Instance instance, const char* selected_text); 168 void(*SetSelectedText)(PP_Instance instance, const char* selected_text);
169 169
170 // Sets the link currently under the cursor. 170 // Sets the link currently under the cursor.
171 void (*SetLinkUnderCursor)(PP_Instance instance, const char* url); 171 void (*SetLinkUnderCursor)(PP_Instance instance, const char* url);
172 }; 172 };
173 173
174 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ 174 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_
OLDNEW
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | ppapi/cpp/private/pdf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698