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

Unified Diff: printing/image.h

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems Created 9 years, 8 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
« no previous file with comments | « printing/emf_win.h ('k') | printing/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image.h
diff --git a/printing/image.h b/printing/image.h
index 5d84c8d654330a26449e8c6a66b08f3e52cedc7c..3bed21839a68069b8e04317edc37554eaec4b5df 100644
--- a/printing/image.h
+++ b/printing/image.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,13 +10,14 @@
#include "base/basictypes.h"
#include "base/logging.h"
-#include "printing/native_metafile.h"
#include "ui/gfx/size.h"
class FilePath;
namespace printing {
+class Metafile;
+
// Lightweight raw-bitmap management. The image, once initialized, is immutable.
// The main purpose is testing image contents.
class Image {
@@ -28,7 +29,7 @@ class Image {
// Creates the image from the metafile. Deduces bounds based on bounds in
// metafile. If loading fails size().IsEmpty() will be true.
- explicit Image(const NativeMetafile& metafile);
+ explicit Image(const Metafile& metafile);
// Copy constructor.
explicit Image(const Image& image);
@@ -73,7 +74,7 @@ class Image {
bool LoadMetafile(const std::string& data);
- bool LoadMetafile(const NativeMetafile& metafile);
+ bool LoadMetafile(const Metafile& metafile);
// Pixel dimensions of the image.
gfx::Size size_;
« no previous file with comments | « printing/emf_win.h ('k') | printing/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698