OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_PROXY_PDF_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_PDF_RESOURCE_H_ |
6 #define PPAPI_PROXY_PDF_RESOURCE_H_ | 6 #define PPAPI_PROXY_PDF_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // For unittesting with a given locale. | 29 // For unittesting with a given locale. |
30 void SetLocaleForTest(const std::string& locale) { | 30 void SetLocaleForTest(const std::string& locale) { |
31 locale_ = locale; | 31 locale_ = locale; |
32 } | 32 } |
33 | 33 |
34 // Resource override. | 34 // Resource override. |
35 thunk::PPB_PDF_API* AsPPB_PDF_API() override; | 35 thunk::PPB_PDF_API* AsPPB_PDF_API() override; |
36 | 36 |
37 // PPB_PDF_API implementation. | 37 // PPB_PDF_API implementation. |
38 PP_Var GetLocalizedString(PP_ResourceString string_id) override; | |
39 void SearchString(const unsigned short* input_string, | 38 void SearchString(const unsigned short* input_string, |
40 const unsigned short* input_term, | 39 const unsigned short* input_term, |
41 bool case_sensitive, | 40 bool case_sensitive, |
42 PP_PrivateFindResult** results, | 41 PP_PrivateFindResult** results, |
43 int* count) override; | 42 int* count) override; |
44 void DidStartLoading() override; | 43 void DidStartLoading() override; |
45 void DidStopLoading() override; | 44 void DidStopLoading() override; |
46 void SetContentRestriction(int restrictions) override; | 45 void SetContentRestriction(int restrictions) override; |
47 void UserMetricsRecordAction(const PP_Var& action) override; | 46 void UserMetricsRecordAction(const PP_Var& action) override; |
48 void HasUnsupportedFeature() override; | 47 void HasUnsupportedFeature() override; |
(...skipping 10 matching lines...) Expand all Loading... |
59 private: | 58 private: |
60 std::string locale_; | 59 std::string locale_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(PDFResource); | 61 DISALLOW_COPY_AND_ASSIGN(PDFResource); |
63 }; | 62 }; |
64 | 63 |
65 } // namespace proxy | 64 } // namespace proxy |
66 } // namespace ppapi | 65 } // namespace ppapi |
67 | 66 |
68 #endif // PPAPI_PROXY_PDF_RESOURCE_H_ | 67 #endif // PPAPI_PROXY_PDF_RESOURCE_H_ |
OLD | NEW |