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

Unified Diff: ui/gfx/image/image_unittest_util.h

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename methods and vars to make image_scale more clear Created 7 years, 3 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: ui/gfx/image/image_unittest_util.h
diff --git a/ui/gfx/image/image_unittest_util.h b/ui/gfx/image/image_unittest_util.h
index a2293c8688b6e03be942c8c3b0a81b14fc8aa0d8..4788e4e100966ef9b09e08f5c0d33e89b65493a8 100644
--- a/ui/gfx/image/image_unittest_util.h
+++ b/ui/gfx/image/image_unittest_util.h
@@ -8,7 +8,6 @@
#ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
#define UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
-#include "ui/base/layout.h"
#include "ui/gfx/image/image.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -25,7 +24,7 @@ typedef GdkPixbuf* PlatformImage;
typedef gfx::ImageSkia PlatformImage;
#endif
-std::vector<ui::ScaleFactor> Get1xAnd2xScaleFactors();
+std::vector<float> Get1xAnd2xScales();
// Create a bitmap of |width|x|height|.
const SkBitmap CreateBitmap(int width, int height);
@@ -65,7 +64,7 @@ bool ImageSkiaStructureMatches(
const gfx::ImageSkia& image_skia,
int width,
int height,
- const std::vector<ui::ScaleFactor>& scale_factors);
+ const std::vector<float>& scale_factors);
bool IsEmpty(const gfx::Image& image);

Powered by Google App Engine
This is Rietveld 408576698