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

Side by Side Diff: pdf/out_of_process_instance.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/pepper_pdf_host.cc ('k') | pdf/out_of_process_instance.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PDF_OUT_OF_PROCESS_INSTANCE_H_ 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void LoadPreviewUrl(const std::string& url); 162 void LoadPreviewUrl(const std::string& url);
163 void LoadUrlInternal(const std::string& url, pp::URLLoader* loader, 163 void LoadUrlInternal(const std::string& url, pp::URLLoader* loader,
164 void (OutOfProcessInstance::* method)(int32_t)); 164 void (OutOfProcessInstance::* method)(int32_t));
165 165
166 // Creates a URL loader and allows it to access all urls, i.e. not just the 166 // Creates a URL loader and allows it to access all urls, i.e. not just the
167 // frame's origin. 167 // frame's origin.
168 pp::URLLoader CreateURLLoaderInternal(); 168 pp::URLLoader CreateURLLoaderInternal();
169 169
170 void FormDidOpen(int32_t result); 170 void FormDidOpen(int32_t result);
171 171
172 std::string GetLocalizedString(PP_ResourceString id);
173
174 void UserMetricsRecordAction(const std::string& action); 172 void UserMetricsRecordAction(const std::string& action);
175 173
176 enum DocumentLoadState { 174 enum DocumentLoadState {
177 LOAD_STATE_LOADING, 175 LOAD_STATE_LOADING,
178 LOAD_STATE_COMPLETE, 176 LOAD_STATE_COMPLETE,
179 LOAD_STATE_FAILED, 177 LOAD_STATE_FAILED,
180 }; 178 };
181 179
182 // Set new zoom scale. 180 // Set new zoom scale.
183 void SetZoom(double scale); 181 void SetZoom(double scale);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // The blank space above the first page of the document reserved for the 338 // The blank space above the first page of the document reserved for the
341 // toolbar. 339 // toolbar.
342 int top_toolbar_height_; 340 int top_toolbar_height_;
343 341
344 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 342 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
345 }; 343 };
346 344
347 } // namespace chrome_pdf 345 } // namespace chrome_pdf
348 346
349 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 347 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/pdf/renderer/pepper_pdf_host.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698