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

Unified Diff: printing/metafile.h

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: Skip compiling the chromeos context if we don't compile against cups Created 4 years, 5 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: printing/metafile.h
diff --git a/printing/metafile.h b/printing/metafile.h
index e93ffd10f60fd7b1e2435903448484f49e09edf5..2ae9ad2db0c7591d88ffe383aed96079794d7700 100644
--- a/printing/metafile.h
+++ b/printing/metafile.h
@@ -86,6 +86,12 @@ class PRINTING_EXPORT MetafilePlayer {
const MacRenderPageParams& params) const = 0;
#endif // if defined(OS_WIN)
+#if defined(OS_CHROMEOS)
+ // Populates the buffer with the underlying data. This function should ONLY be
+ // called after the metafile is closed. Returns true if writing succeeded.
+ virtual bool GetDataAsVector(std::vector<char>* buffer) const = 0;
+#endif // defined(OS_CHROMEOS)
+
// Saves the underlying data to the given file. This function should ONLY be
// called after the metafile is closed. Returns true if writing succeeded.
virtual bool SaveTo(base::File* file) const = 0;
@@ -155,7 +161,11 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
const RECT* rect) const = 0;
#endif // OS_WIN
+#if defined(OS_CHROMEOS)
+ bool GetDataAsVector(std::vector<char>* buffer) const override;
+#else
bool GetDataAsVector(std::vector<char>* buffer) const;
Lei Zhang 2016/07/20 01:26:56 This feels a bit weird. Why don't we just remove t
skau 2016/07/22 23:36:13 It happens that there's a Windows implementation o
+#endif // defined(OS_CHROMEOS)
bool SaveTo(base::File* file) const override;
« no previous file with comments | « printing/BUILD.gn ('k') | printing/printed_document.cc » ('j') | printing/printing.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698