| Index: ui/gfx/icon_util.cc
|
| diff --git a/ui/gfx/icon_util.cc b/ui/gfx/icon_util.cc
|
| index 2d9bc2164a527eed3fde6b202659e6d05c1cc0b3..f5b9b179f45fff9ba57724b859fbfdb1e37d726c 100644
|
| --- a/ui/gfx/icon_util.cc
|
| +++ b/ui/gfx/icon_util.cc
|
| @@ -369,6 +369,14 @@ base::win::ScopedHICON IconUtil::CreateCursorFromDIB(const gfx::Size& icon_size,
|
| return base::win::ScopedHICON(CreateIconIndirect(&ii));
|
| }
|
|
|
| +gfx::Point IconUtil::GetHotSpotFromHICON(HICON icon) {
|
| + ScopedICONINFO icon_info;
|
| + gfx::Point hotspot;
|
| + if (::GetIconInfo(icon, &icon_info))
|
| + hotspot = gfx::Point(icon_info.xHotspot, icon_info.yHotspot);
|
| +
|
| + return hotspot;
|
| +}
|
| SkBitmap IconUtil::CreateSkBitmapFromHICONHelper(HICON icon,
|
| const gfx::Size& s) {
|
| DCHECK(icon);
|
|
|