summaryrefslogtreecommitdiffstats
path: root/ui/gfx/image/image.h
diff options
context:
space:
mode:
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 07:52:09 +0000
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 07:52:09 +0000
commit2ece91820d6ddfddd98e9fa5b036fb3469c4ebc3 (patch)
treee6a6bcfe01dafa3fb429913eb5ff1a78c674d0ab /ui/gfx/image/image.h
parent80a553cecb8ac53a3d84d64e38187855e31a8b04 (diff)
downloadchromium_src-2ece91820d6ddfddd98e9fa5b036fb3469c4ebc3.zip
chromium_src-2ece91820d6ddfddd98e9fa5b036fb3469c4ebc3.tar.gz
chromium_src-2ece91820d6ddfddd98e9fa5b036fb3469c4ebc3.tar.bz2
gfx::Image: Added Width, Height and Size methods.
BUG=222557 Review URL: https://chromiumcodereview.appspot.com/12858007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/image/image.h')
-rw-r--r--ui/gfx/image/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index 508486e..ab13e84 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -38,6 +38,7 @@ class ImageMacTest;
namespace gfx {
struct ImagePNGRep;
class ImageSkia;
+class Size;
#if defined(TOOLKIT_GTK)
class CairoCachedSurface;
@@ -166,6 +167,11 @@ class UI_EXPORT Image {
// Returns true if this Image has no representations.
bool IsEmpty() const;
+ // Width and height of image in DIP coordinate system.
+ int Width() const;
+ int Height() const;
+ gfx::Size Size() const;
+
// Swaps this image's internal representations with |other|.
void SwapRepresentations(gfx::Image* other);