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

Unified Diff: webkit/glue/webcursor.h

Issue 3168003: Clamp the hotspot on custom cursors to the custom cursor image. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 months 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
« no previous file with comments | « no previous file | webkit/glue/webcursor.cc » ('j') | webkit/glue/webcursor_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webcursor.h
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index 293bd744b48a3475e7569077b54d515873903439..35eb001464fd0f5d6116184927a5929ec17393a1 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -127,6 +127,9 @@ class WebCursor {
void SetCustomData(const WebKit::WebImage& image);
void ImageFromCustomData(WebKit::WebImage* image) const;
+ // Clamp the hotspot to the custom image's bounds, if this is a custom cursor.
+ void ClampHotspot();
+
// WebCore::PlatformCursor type.
int type_;
« no previous file with comments | « no previous file | webkit/glue/webcursor.cc » ('j') | webkit/glue/webcursor_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698