diff options
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r-- | printing/emf_win.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index f4ee30f..5f9bd5a 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -81,13 +81,18 @@ class Emf : public NativeMetafile { virtual bool Playback(HDC hdc, const RECT* rect) const; virtual bool SafePlayback(HDC hdc) const; - virtual bool GetData(std::vector<uint8>* buffer) const; - virtual HENHMETAFILE emf() const { return emf_; } private: + FRIEND_TEST_ALL_PREFIXES(EmfTest, DC); + FRIEND_TEST_ALL_PREFIXES(EmfPrintingTest, PageBreak); + FRIEND_TEST_ALL_PREFIXES(EmfTest, FileBackedEmf); + + // Retrieves the underlying data stream. It is a helper function. + bool GetDataAsVector(std::vector<uint8>* buffer) const; + // Playbacks safely one EMF record. static int CALLBACK SafePlaybackProc(HDC hdc, HANDLETABLE* handle_table, |