Index: ui/gfx/image/image_skia_operations.h |
diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h |
index 24a5b598ff8118bad514231105c84a60dbeaa06f..220fc0cf65ec95558cc5da2903bdc9fd5933bc6b 100644 |
--- a/ui/gfx/image/image_skia_operations.h |
+++ b/ui/gfx/image/image_skia_operations.h |
@@ -2,15 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef UI_GFX_IMAGESKIA_OPERATIONS_H_ |
-#define UI_GFX_IMAGESKIA_OPERATIONS_H_ |
+#ifndef UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ |
+#define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ |
#pragma once |
#include "base/gtest_prod_util.h" |
#include "ui/base/ui_export.h" |
+#include "ui/gfx/shadow_value.h" |
oshima
2012/07/11 18:08:41
can you use forward decl?
xiyuan
2012/07/11 21:40:40
This header is included for gfx::ShadowValues, whi
|
namespace gfx { |
class ImageSkia; |
+class Size; |
class UI_EXPORT ImageSkiaOperations { |
public: |
@@ -34,10 +36,18 @@ class UI_EXPORT ImageSkiaOperations { |
int src_x, int src_y, |
int dst_w, int dst_h); |
+ // Creates an image by resizing |source| to given |target_dip_size|. |
+ static ImageSkia CreateResizedImage(const ImageSkia& source, |
+ const Size& target_dip_size); |
+ |
+ // Creates an image with drop shadow defined in |shadows| for |source|. |
+ static ImageSkia CreateDropShadowImage(const ImageSkia& source, |
+ const ShadowValues& shadows); |
+ |
private: |
ImageSkiaOperations(); // Class for scoping only. |
}; |
} |
-#endif // UI_GFX_IMAGESKIA_OPERATIONS_H_ |
+#endif // UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ |