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

Side by Side Diff: components/pdf/renderer/pepper_pdf_host.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 | « components/pdf/renderer/DEPS ('k') | components/pdf/renderer/pepper_pdf_host.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // The caller retains the ownership of |print_client|. The client is 64 // The caller retains the ownership of |print_client|. The client is
65 // allowed to be set only once, and when set, the client must outlive the 65 // allowed to be set only once, and when set, the client must outlive the
66 // PPB_PDF_Impl instance. 66 // PPB_PDF_Impl instance.
67 static void SetPrintClient(PrintClient* print_client); 67 static void SetPrintClient(PrintClient* print_client);
68 68
69 int32_t OnResourceMessageReceived( 69 int32_t OnResourceMessageReceived(
70 const IPC::Message& msg, 70 const IPC::Message& msg,
71 ppapi::host::HostMessageContext* context) override; 71 ppapi::host::HostMessageContext* context) override;
72 72
73 private: 73 private:
74 int32_t OnHostMsgGetLocalizedString(ppapi::host::HostMessageContext* context,
75 PP_ResourceString string_id);
76 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context); 74 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context);
77 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); 75 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context);
78 int32_t OnHostMsgSetContentRestriction( 76 int32_t OnHostMsgSetContentRestriction(
79 ppapi::host::HostMessageContext* context, 77 ppapi::host::HostMessageContext* context,
80 int restrictions); 78 int restrictions);
81 int32_t OnHostMsgUserMetricsRecordAction( 79 int32_t OnHostMsgUserMetricsRecordAction(
82 ppapi::host::HostMessageContext* context, 80 ppapi::host::HostMessageContext* context,
83 const std::string& action); 81 const std::string& action);
84 int32_t OnHostMsgHasUnsupportedFeature( 82 int32_t OnHostMsgHasUnsupportedFeature(
85 ppapi::host::HostMessageContext* context); 83 ppapi::host::HostMessageContext* context);
86 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context); 84 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context);
87 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context); 85 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context);
88 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context, 86 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context,
89 const base::string16& selected_text); 87 const base::string16& selected_text);
90 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context, 88 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context,
91 const std::string& url); 89 const std::string& url);
92 90
93 content::RendererPpapiHost* host_; 91 content::RendererPpapiHost* host_;
94 92
95 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); 93 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost);
96 }; 94 };
97 95
98 } // namespace pdf 96 } // namespace pdf
99 97
100 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 98 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
OLDNEW
« no previous file with comments | « components/pdf/renderer/DEPS ('k') | components/pdf/renderer/pepper_pdf_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698