Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / ppapi / thunk / ppb_pdf_api.h
blob8e0f4b0b3de2012559c264b64b4e79c4376b51bc
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_THUNK_PPB_PDF_API_H_
6 #define PPAPI_THUNK_PPB_PDF_API_H_
8 #include "ppapi/c/private/ppb_pdf.h"
9 #include "ppapi/shared_impl/singleton_resource_id.h"
11 namespace ppapi {
12 namespace thunk {
14 class PPB_PDF_API {
15 public:
16 virtual PP_Var GetLocalizedString(PP_ResourceString string_id) = 0;
17 virtual PP_Resource GetResourceImage(PP_ResourceImage image_id) = 0;
18 virtual void SearchString(const unsigned short* input_string,
19 const unsigned short* input_term,
20 bool case_sensitive,
21 PP_PrivateFindResult** results,
22 int* count) = 0;
23 virtual void DidStartLoading() = 0;
24 virtual void DidStopLoading() = 0;
25 virtual void SetContentRestriction(int restrictions) = 0;
26 virtual void HistogramPDFPageCount(int count) = 0;
27 virtual void UserMetricsRecordAction(const PP_Var& action) = 0;
28 virtual void HasUnsupportedFeature() = 0;
29 virtual void SaveAs() = 0;
30 virtual PP_Bool IsFeatureEnabled(PP_PDFFeature feature) = 0;
31 virtual void Print() = 0;
32 virtual PP_Resource GetResourceImageForScale(PP_ResourceImage image_id,
33 float scale) = 0;
34 virtual PP_Bool IsOutOfProcess() = 0;
35 virtual void SetSelectedText(const char* selected_text) = 0;
36 virtual void SetLinkUnderCursor(const char* url) = 0;
37 virtual void GetV8ExternalSnapshotData(const char** natives_data_out,
38 int* natives_size_out,
39 const char** snapshot_data_out,
40 int* snapshot_size_out) = 0;
42 static const SingletonResourceID kSingletonResourceID = PDF_SINGLETON_ID;
45 } // namespace thunk
46 } // namespace ppapi
48 #endif // PPAPI_THUNK_PPB_PDF_API_H_