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

Unified Diff: webkit/common/cursors/webcursor_mac.mm

Issue 134823003: Define Panning cursors only on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « webkit/common/cursors/webcursor_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/cursors/webcursor_mac.mm
diff --git a/webkit/common/cursors/webcursor_mac.mm b/webkit/common/cursors/webcursor_mac.mm
index 4358be086dff106db98a6e6c97eae776b6b95db1..ce318bb132bc601ed40e8ede4ad1b72b7b412b2e 100644
--- a/webkit/common/cursors/webcursor_mac.mm
+++ b/webkit/common/cursors/webcursor_mac.mm
@@ -213,35 +213,27 @@ gfx::NativeCursor WebCursor::GetNativeCursor() {
return GetCoreCursorWithFallback(kHelpCursor,
IDR_HELP_CURSOR, 8, 8);
case WebCursorInfo::TypeEastResize:
- case WebCursorInfo::TypeEastPanning:
return GetCoreCursorWithFallback(kResizeEastCursor,
IDR_EAST_RESIZE_CURSOR, 14, 7);
case WebCursorInfo::TypeNorthResize:
- case WebCursorInfo::TypeNorthPanning:
return GetCoreCursorWithFallback(kResizeNorthCursor,
IDR_NORTH_RESIZE_CURSOR, 7, 1);
case WebCursorInfo::TypeNorthEastResize:
- case WebCursorInfo::TypeNorthEastPanning:
return GetCoreCursorWithFallback(kResizeNortheastCursor,
IDR_NORTHEAST_RESIZE_CURSOR, 14, 1);
case WebCursorInfo::TypeNorthWestResize:
- case WebCursorInfo::TypeNorthWestPanning:
return GetCoreCursorWithFallback(kResizeNorthwestCursor,
IDR_NORTHWEST_RESIZE_CURSOR, 0, 0);
case WebCursorInfo::TypeSouthResize:
- case WebCursorInfo::TypeSouthPanning:
return GetCoreCursorWithFallback(kResizeSouthCursor,
IDR_SOUTH_RESIZE_CURSOR, 7, 14);
case WebCursorInfo::TypeSouthEastResize:
- case WebCursorInfo::TypeSouthEastPanning:
return GetCoreCursorWithFallback(kResizeSoutheastCursor,
IDR_SOUTHEAST_RESIZE_CURSOR, 14, 14);
case WebCursorInfo::TypeSouthWestResize:
- case WebCursorInfo::TypeSouthWestPanning:
return GetCoreCursorWithFallback(kResizeSouthwestCursor,
IDR_SOUTHWEST_RESIZE_CURSOR, 1, 14);
case WebCursorInfo::TypeWestResize:
- case WebCursorInfo::TypeWestPanning:
return GetCoreCursorWithFallback(kResizeWestCursor,
IDR_WEST_RESIZE_CURSOR, 1, 7);
case WebCursorInfo::TypeNorthSouthResize:
@@ -262,7 +254,6 @@ gfx::NativeCursor WebCursor::GetNativeCursor() {
return [NSCursor resizeLeftRightCursor];
case WebCursorInfo::TypeRowResize:
return [NSCursor resizeUpDownCursor];
- case WebCursorInfo::TypeMiddlePanning:
case WebCursorInfo::TypeMove:
return GetCoreCursorWithFallback(kMoveCursor,
IDR_MOVE_CURSOR, 7, 7);
« no previous file with comments | « webkit/common/cursors/webcursor_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698