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

Unified Diff: printing/image.h

Issue 2850042: Deprecate more old filepath functions. (Closed)
Patch Set: rebase Created 10 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/image.h
diff --git a/printing/image.h b/printing/image.h
index ed2820ba4df34fff2370e3138ee9e497bb876309..5f4746daf3959c82c980d4535c7e1e6da1524db9 100644
--- a/printing/image.h
+++ b/printing/image.h
@@ -9,21 +9,22 @@
#include <vector>
#include "base/basictypes.h"
-#include "base/file_path.h"
#include "base/logging.h"
#include "gfx/size.h"
#include "printing/native_metafile.h"
+class FilePath;
+
namespace printing {
// Lightweight raw-bitmap management. The image, once initialized, is immutable.
// The main purpose is testing image contents.
class Image {
public:
- // Creates the image from the given filename on disk. Uses extension to
+ // Creates the image from the given file on disk. Uses extension to
// defer file type. PNG and EMF (on Windows) currently supported.
// If image loading fails size().IsEmpty() will be true.
- explicit Image(const std::wstring& filename);
+ explicit Image(const FilePath& path);
// Creates the image from the metafile. Deduces bounds based on bounds in
// metafile. If loading fails size().IsEmpty() will be true.

Powered by Google App Engine
This is Rietveld 408576698