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

Unified Diff: views/controls/single_split_view.cc

Issue 149317: Use different cursors for horizontal and vertical splits. (cursor was static ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/single_split_view.cc
===================================================================
--- views/controls/single_split_view.cc (revision 20134)
+++ views/controls/single_split_view.cc (working copy)
@@ -94,9 +94,9 @@
int x, int y) {
if (IsPointInDivider(x, y)) {
#if defined(OS_WIN)
- static HCURSOR resize_cursor = LoadCursor(NULL,
- is_horizontal_ ? IDC_SIZEWE : IDC_SIZENS);
- return resize_cursor;
+ static HCURSOR we_resize_cursor = LoadCursor(NULL, IDC_SIZEWE);
+ static HCURSOR ns_resize_cursor = LoadCursor(NULL, IDC_SIZENS);
+ return is_horizontal_ ? we_resize_cursor : ns_resize_cursor;
#elif defined(OS_LINUX)
return gdk_cursor_new(is_horizontal_ ?
GDK_SB_H_DOUBLE_ARROW :
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698