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

Unified Diff: views/controls/resize_area.cc

Issue 6880201: Scrap WNDCLASSEX.hCursor, update GetCursorForPoint, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use brace style struct init for WNDCLASSEX |class_ex|, fix comment. Created 9 years, 8 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 | « views/controls/link.cc ('k') | views/controls/textfield/native_textfield_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/resize_area.cc
diff --git a/views/controls/resize_area.cc b/views/controls/resize_area.cc
index c04a537561ea9120710a45f0a8da91f14b9dcdea..8e17919dfee4da173cdedbfbd74dc664280840c4 100644
--- a/views/controls/resize_area.cc
+++ b/views/controls/resize_area.cc
@@ -16,10 +16,6 @@ namespace views {
const char ResizeArea::kViewClassName[] = "views/ResizeArea";
-#if defined(OS_WIN)
-static HCURSOR g_resize_cursor = NULL;
-#endif
-
////////////////////////////////////////////////////////////////////////////////
// ResizeArea
@@ -40,8 +36,7 @@ gfx::NativeCursor ResizeArea::GetCursorForPoint(ui::EventType event_type,
if (!enabled_)
return NULL;
#if defined(OS_WIN)
- if (!g_resize_cursor)
- g_resize_cursor = LoadCursor(NULL, IDC_SIZEWE);
+ static HCURSOR g_resize_cursor = LoadCursor(NULL, IDC_SIZEWE);
return g_resize_cursor;
#elif defined(OS_LINUX)
return gfx::GetCursor(GDK_SB_H_DOUBLE_ARROW);
« no previous file with comments | « views/controls/link.cc ('k') | views/controls/textfield/native_textfield_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698