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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 2479313005: Add font substituted metrics for OS other than Linux (Closed)
Patch Set: Move ifs inside methods Created 4 years, 1 month 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 | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 pp::UMAPrivate uma_; 304 pp::UMAPrivate uma_;
305 305
306 // Used so that we only tell the browser once about an unsupported feature, to 306 // Used so that we only tell the browser once about an unsupported feature, to
307 // avoid the infobar going up more than once. 307 // avoid the infobar going up more than once.
308 bool told_browser_about_unsupported_feature_; 308 bool told_browser_about_unsupported_feature_;
309 309
310 // Keeps track of which unsupported features we reported, so we avoid spamming 310 // Keeps track of which unsupported features we reported, so we avoid spamming
311 // the stats if a feature shows up many times per document. 311 // the stats if a feature shows up many times per document.
312 std::set<std::string> unsupported_features_reported_; 312 std::set<std::string> unsupported_features_reported_;
313 313
314 #if defined(OS_LINUX)
315 // Keeps track of whether font substitution has been reported, so we avoid 314 // Keeps track of whether font substitution has been reported, so we avoid
316 // spamming the stats if a document requested multiple substitutes. 315 // spamming the stats if a document requested multiple substitutes.
317 bool font_substitution_reported_; 316 bool font_substitution_reported_;
318 #endif
319 317
320 // Number of pages in print preview mode, 0 if not in print preview mode. 318 // Number of pages in print preview mode, 0 if not in print preview mode.
321 int print_preview_page_count_; 319 int print_preview_page_count_;
322 std::vector<int> print_preview_page_numbers_; 320 std::vector<int> print_preview_page_numbers_;
323 321
324 // Used to manage loaded print preview page information. A |PreviewPageInfo| 322 // Used to manage loaded print preview page information. A |PreviewPageInfo|
325 // consists of data source url string and the page index in the destination 323 // consists of data source url string and the page index in the destination
326 // document. 324 // document.
327 typedef std::pair<std::string, int> PreviewPageInfo; 325 typedef std::pair<std::string, int> PreviewPageInfo;
328 std::queue<PreviewPageInfo> preview_pages_info_; 326 std::queue<PreviewPageInfo> preview_pages_info_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 371
374 // True if the plugin is loaded in print preview, otherwise false. 372 // True if the plugin is loaded in print preview, otherwise false.
375 bool is_print_preview_; 373 bool is_print_preview_;
376 374
377 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 375 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
378 }; 376 };
379 377
380 } // namespace chrome_pdf 378 } // namespace chrome_pdf
381 379
382 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 380 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698