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

Unified Diff: ui/gfx/icon_util.h

Issue 2605773002: Fix Aura can't provide accurate cursor hotspot info. (Closed)
Patch Set: Created 4 years 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/icon_util.h
diff --git a/ui/gfx/icon_util.h b/ui/gfx/icon_util.h
index 960018ece0fe07839d2b7e801738e21e776a71f0..e542caec0e1dbb2d323174d738f7127f26f99bca 100644
--- a/ui/gfx/icon_util.h
+++ b/ui/gfx/icon_util.h
@@ -141,6 +141,10 @@ class GFX_EXPORT IconUtil {
const void* dib_bits,
size_t dib_size);
+ // Given a valid HICON handle representing an icon, this function retrieves
+ // the hot spot of the icon.
+ static gfx::Point GetHotSpotFromHICON(HICON icon);
+
private:
// The icon format is published in the MSDN but there is no definition of
// the icon file structures in any of the Windows header files so we need to

Powered by Google App Engine
This is Rietveld 408576698