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

Side by Side Diff: ppapi/proxy/pdf_resource.h

Issue 1329213002: PDF: Use chrome.resourcesPrivate instead of Pepper to display translated strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@i18n_api
Patch Set: Remove test cases Created 5 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 | « ppapi/cpp/private/pdf.cc ('k') | ppapi/proxy/pdf_resource.cc » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « ppapi/cpp/private/pdf.cc ('k') | ppapi/proxy/pdf_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698