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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 2855423002: Use more StringPieces in the PDF plugin. (Closed)
Patch Set: Created 3 years, 7 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 | « pdf/DEPS ('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 <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Set new zoom scale. 197 // Set new zoom scale.
198 void SetZoom(double scale); 198 void SetZoom(double scale);
199 199
200 // Reduces the document to 1 page and appends |print_preview_page_count_| 200 // Reduces the document to 1 page and appends |print_preview_page_count_|
201 // blank pages to the document for print preview. 201 // blank pages to the document for print preview.
202 void AppendBlankPrintPreviewPages(); 202 void AppendBlankPrintPreviewPages();
203 203
204 // Process the preview page data information. |src_url| specifies the preview 204 // Process the preview page data information. |src_url| specifies the preview
205 // page data location. The |src_url| is in the format: 205 // page data location. The |src_url| is in the format:
206 // chrome://print/id/page_number/print.pdf 206 // chrome://print/id/page_number/print.pdf
207 // |dst_page_index| specifies the blank page index that needs to be replaced 207 // |dest_page_index| specifies the blank page index that needs to be replaced
Lei Zhang 2017/05/04 19:19:38 We might have chosen "dst" because it's the same l
208 // with the new page data. 208 // with the new page data.
209 void ProcessPreviewPageInfo(const std::string& src_url, int dst_page_index); 209 void ProcessPreviewPageInfo(const std::string& src_url, int dest_page_index);
210 // Load the next available preview page into the blank page. 210 // Load the next available preview page into the blank page.
211 void LoadAvailablePreviewPage(); 211 void LoadAvailablePreviewPage();
212 212
213 // Bound the given scroll offset to the document. 213 // Bound the given scroll offset to the document.
214 pp::FloatPoint BoundScrollOffsetToDocument( 214 pp::FloatPoint BoundScrollOffsetToDocument(
215 const pp::FloatPoint& scroll_offset); 215 const pp::FloatPoint& scroll_offset);
216 216
217 pp::ImageData image_data_; 217 pp::ImageData image_data_;
218 // Used when the plugin is embedded in a page and we have to create the loader 218 // Used when the plugin is embedded in a page and we have to create the loader
219 // ourself. 219 // ourself.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 // True if the plugin is loaded in print preview, otherwise false. 388 // True if the plugin is loaded in print preview, otherwise false.
389 bool is_print_preview_; 389 bool is_print_preview_;
390 390
391 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 391 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
392 }; 392 };
393 393
394 } // namespace chrome_pdf 394 } // namespace chrome_pdf
395 395
396 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 396 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « pdf/DEPS ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698