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

Unified Diff: printing/metafile.h

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: 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: printing/metafile.h
diff --git a/printing/metafile.h b/printing/metafile.h
index 4621fbfa47727c1b6aa314ecf8cc7c9d27954280..47e249ba93e73758e3c69dc098abee376604cd0b 100644
--- a/printing/metafile.h
+++ b/printing/metafile.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "build/build_config.h"
#include "printing/printing_export.h"
-#include "ui/gfx/native_widget_types.h"
+#include "skia/ext/platform_surface.h"
#if defined(OS_WIN)
#include <windows.h>
@@ -74,14 +74,14 @@ class PRINTING_EXPORT MetafilePlayer {
// back in the HDC. The trick is that it skip over the records known to have
// issue with some printers. See Emf::Record::SafePlayback implementation for
// details.
- virtual bool SafePlayback(gfx::NativeDrawingContext hdc) const = 0;
+ virtual bool SafePlayback(skia::NativeDrawingContext hdc) const = 0;
#elif defined(OS_MACOSX)
// Renders the given page into |rect| in the given context.
// Pages use a 1-based index. The rendering uses the arguments in
// |params| to determine scaling, translation, and rotation.
virtual bool RenderPage(unsigned int page_number,
- gfx::NativeDrawingContext context,
+ skia::NativeDrawingContext context,
const CGRect rect,
const MacRenderPageParams& params) const = 0;
#endif // if defined(OS_WIN)
@@ -144,7 +144,7 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
virtual gfx::Rect GetPageBounds(unsigned int page_number) const = 0;
virtual unsigned int GetPageCount() const = 0;
- virtual gfx::NativeDrawingContext context() const = 0;
+ virtual skia::NativeDrawingContext context() const = 0;
#if defined(OS_WIN)
// "Plays" the EMF buffer in a HDC. It is the same effect as calling the
@@ -155,7 +155,7 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
// functions, whether used directly or indirectly through precompiled EMF
// data. We have to accept the risk here. Since it is used only for printing,
// it requires user intervention.
- virtual bool Playback(gfx::NativeDrawingContext hdc,
+ virtual bool Playback(skia::NativeDrawingContext hdc,
const RECT* rect) const = 0;
#endif // OS_WIN

Powered by Google App Engine
This is Rietveld 408576698