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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 2398763002: Add font substitution metric for Linux (Closed)
Patch Set: Restore spacing Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index 07c15b56e865c9dca7c344e278c244c3028adc45..24af8cc362072eaa69b668dee784d99044196b4e 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -120,6 +120,7 @@ class PDFiumEngine : public PDFEngine,
void OnDocumentComplete() override;
void UnsupportedFeature(int type);
+ void FontSubstituted();
std::string current_find_text() const { return current_find_text_; }
@@ -744,6 +745,17 @@ class ScopedUnsupportedFeature {
PDFiumEngine* const old_engine_;
};
+// Create a local variable of this when calling PDFium functions which can call
+// our global callback when a substitute font is mapped.
+class ScopedSubstFont {
+ public:
+ explicit ScopedSubstFont(PDFiumEngine* engine);
+ ~ScopedSubstFont();
+
+ private:
+ PDFiumEngine* const old_engine_;
+};
Lei Zhang 2016/10/12 18:56:38 Both of the scopers can use a DISALLOW_COPY_AND_AS
+
class PDFiumEngineExports : public PDFEngineExports {
public:
PDFiumEngineExports() {}

Powered by Google App Engine
This is Rietveld 408576698