diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 00:55:28 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 00:55:28 +0000 |
commit | f0b6b4881e24a1e7cd9524c4e381382c14bde1f1 (patch) | |
tree | a003cdb87339224ae24f3dd39f8d3fc9a8f1c8fc /views/controls/resize_area.cc | |
parent | 1edd9e76f6dac6bcdbdebf51eceb7b6665fe52fa (diff) | |
download | chromium_src-f0b6b4881e24a1e7cd9524c4e381382c14bde1f1.zip chromium_src-f0b6b4881e24a1e7cd9524c4e381382c14bde1f1.tar.gz chromium_src-f0b6b4881e24a1e7cd9524c4e381382c14bde1f1.tar.bz2 |
Refactoring of cursor usage (primarily for linux).
Add API to WebCursor to return a native-cursor, and implementation for windows,
linux and mac.
For linux: Move gtk_util::GetCursor into gfx:: namespace. Also, get rid of
ref/unref'ing the cursors from everywhere. Instead, do almost all of it in one
place (in gfx). Also, show proper cursors for web-pages with touchui=1 (i.e. add
support for updating cursor in RenderWidgetHostViewViews).
Review URL: http://codereview.chromium.org/5110010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/resize_area.cc')
-rw-r--r-- | views/controls/resize_area.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/controls/resize_area.cc b/views/controls/resize_area.cc index 950d97c..56a78b8 100644 --- a/views/controls/resize_area.cc +++ b/views/controls/resize_area.cc @@ -7,6 +7,10 @@ #include "app/resource_bundle.h" #include "base/logging.h" +#if defined(OS_LINUX) +#include "gfx/gtk_util.h" +#endif + namespace views { const char ResizeArea::kViewClassName[] = "views/ResizeArea"; @@ -39,7 +43,7 @@ gfx::NativeCursor ResizeArea::GetCursorForPoint(Event::EventType event_type, g_resize_cursor = LoadCursor(NULL, IDC_SIZEWE); return g_resize_cursor; #elif defined(OS_LINUX) - return gdk_cursor_new(GDK_SB_H_DOUBLE_ARROW); + return gfx::GetCursor(GDK_SB_H_DOUBLE_ARROW); #endif } |