summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 01:46:41 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 01:46:41 +0000
commitc21fcc5b17f1a7234d7649dbc4d24c3b9918605f (patch)
treeb1be7bd835ee5535117f92e02b9126d172b9753a /webkit/tools
parent4f644da31f9f8d03b02dcfd9176d6fbf48bef578 (diff)
downloadchromium_src-c21fcc5b17f1a7234d7649dbc4d24c3b9918605f.zip
chromium_src-c21fcc5b17f1a7234d7649dbc4d24c3b9918605f.tar.gz
chromium_src-c21fcc5b17f1a7234d7649dbc4d24c3b9918605f.tar.bz2
Support loading non system cursors in Chrome AURA/ASH windows.
This is mostly intended to support special cursors passed by Webkit like the middle scroll panning cursor, etc. On Windows AURA the code to load the platform cursor is implemented in CursorLoaderWin, which attempts to load the cursor via the LoadCursor API always passing NULL as the module handle. This would not work for non system cursors. To enable support for the same added support to pass the cursor module name in the Cursor interfaces for AURA. These include the following:- 1. CursorClient 2. CursorLoader 3. NativeCursorManager Added a method SetCursorResourceModule to these interfaces. The NativeCursorManager is registered as the cursor client in AURA/ASH. It forwards calls to the CursorClient which then forwards the calls over to the CursorLoader. For ASH, I added a SetCursorResourceModule method to the ImageCursor class used by ASH. We pass the resource dll name from RenderWidgetHostViewAura::UpdateCursorIfOverSelf method. Added code in the CursorLoaderWin::SetPlatformCursor function to use the platform cursor from the passed in cursor if available, as the resource dll name may not be available to all cursor clients. BUG=176079 Review URL: https://codereview.chromium.org/12903002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
0 files changed, 0 insertions, 0 deletions