| Index: ui/gfx/image/image_skia_sources.h
|
| diff --git a/ui/gfx/image/image_skia_sources.h b/ui/gfx/image/image_skia_sources.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3803cc44d675e9ffae91a8dae04ce03a45a17101
|
| --- /dev/null
|
| +++ b/ui/gfx/image/image_skia_sources.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
|
| +#define UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
|
| +#pragma once
|
| +
|
| +#include "ui/base/ui_export.h"
|
| +#include "ui/gfx/shadow_value.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +class ImageSkia;
|
| +class ImageSkiaSource;
|
| +class Size;
|
| +
|
| +namespace image_skia_sources {
|
| +
|
| +// Creates an ImageSkiaSource that resizes |source| to given |target_dip_size|.
|
| +// Callers of the function takes ownership of returned ImageSkiaSource.
|
| +UI_EXPORT ImageSkiaSource* CreateResizeSource(const ImageSkia& source,
|
| + const Size& target_dip_size);
|
| +
|
| +// Creates an ImageSkiaSource that generates drop shadow for |source|.
|
| +// Callers of the function takes ownership of returned ImageSkiaSource.
|
| +UI_EXPORT ImageSkiaSource* CreateDropShadowSource(const ImageSkia& source,
|
| + const ShadowValues& shadows);
|
| +
|
| +} // namespace image_skia_sources
|
| +} // namespace gfx
|
| +
|
| +#endif // UI_GFX_IMAGE_IMAGE_SKIA_SOURCES_H_
|
|
|