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

Side by Side Diff: ppapi/cpp/private/pdf.h

Issue 12527012: Add PPAPI C++ wrappers for PDF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | « no previous file | ppapi/cpp/private/pdf.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_PRIVATE_PDF_H_
6 #define PPAPI_CPP_PRIVATE_PDF_H_
7
8 #include <string>
9
10 #include "ppapi/c/private/ppb_pdf.h"
11
12 namespace pp {
13
14 class ImageData;
15 class InstanceHandle;
16 class Var;
17
18 class PDF {
19 public:
20 // Returns true if the required interface is available.
21 static bool IsAvailable();
22
23 static Var GetLocalizedString(const InstanceHandle& instance,
24 PP_ResourceString string_id);
25 static ImageData GetResourceImage(const InstanceHandle& instance,
26 PP_ResourceImage image_id);
27 static PP_Resource GetFontFileWithFallback(
28 const InstanceHandle& instance,
29 const PP_FontDescription_Dev* description,
30 PP_PrivateFontCharset charset);
31 static bool GetFontTableForPrivateFontFile(const InstanceHandle& instance,
32 PP_Resource font_file,
33 uint32_t table,
34 void* output,
35 uint32_t* output_length);
36 static void SearchString(const InstanceHandle& instance,
37 const unsigned short* string,
38 const unsigned short* term,
39 bool case_sensitive,
40 PP_PrivateFindResult** results,
41 int* count);
42 static void DidStartLoading(const InstanceHandle& instance);
43 static void DidStopLoading(const InstanceHandle& instance);
44 static void SetContentRestriction(const InstanceHandle& instance,
45 int restrictions);
46 static void HistogramPDFPageCount(const InstanceHandle& instance,
47 int count);
48 static void UserMetricsRecordAction(const InstanceHandle& instance,
49 const Var& action);
50 static void HasUnsupportedFeature(const InstanceHandle& instance);
51 static void SaveAs(const InstanceHandle& instance);
52 static void Print(const InstanceHandle& instance);
53 static bool IsFeatureEnabled(const InstanceHandle& instance,
54 PP_PDFFeature feature);
55 static ImageData GetResourceImageForScale(const InstanceHandle& instance,
56 PP_ResourceImage image_id,
57 float scale);
58 };
59
60 } // namespace pp
61
62 #endif // PPAPI_CPP_PRIVATE_PDF_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/private/pdf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698