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() {} |