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

Issue 259049: Make Mac WebCursor glue use the nsimage_cache (Closed)

Created:
11 years, 2 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
Reviewers:
TVL
CC:
chromium-reviews_googlegroups.com, John Grabowski, darin (slow to review), pam+watch_chromium.org
Visibility:
Public.

Description

Make Mac WebCursor glue use the nsimage_cache BUG=16438, 14610 (in in support of bundling changes to fix autoupdate) TEST=Hover over a link, get the finger Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28027

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M webkit/glue/webcursor_mac.mm View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mark Mentovai
11 years, 2 months ago (2009-10-05 19:18:17 UTC) #1
TVL
LG please add bug 16438 to the cl description. maybe make the comment below a ...
11 years, 2 months ago (2009-10-05 19:23:11 UTC) #2
darin (slow to review)
11 years, 2 months ago (2009-10-05 20:22:30 UTC) #3
hmm... side note, but nsimage_cache sounds like something that shouldn't be
in base.  perhaps it should live in the new app module instead?-darin

On Mon, Oct 5, 2009 at 12:18 PM, <mark@chromium.org> wrote:

> Reviewers: TVL,
>
> Description:
> Make Mac WebCursor glue use the nsimage_cache
>
> BUG=14610 (this change in in support of bundling changes to fix autoupdate)
> TEST=Hover over a link, get the finger
>
> Please review this at http://codereview.chromium.org/259049
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     webkit/glue/webcursor_mac.mm
>
>
> Index: webkit/glue/webcursor_mac.mm
> ===================================================================
> --- webkit/glue/webcursor_mac.mm        (revision 28016)
> +++ webkit/glue/webcursor_mac.mm        (working copy)
> @@ -7,6 +7,7 @@
>  #import <AppKit/AppKit.h>
>
>  #include "base/logging.h"
> +#include "base/nsimage_cache_mac.h"
>  #include "base/scoped_cftyperef.h"
>  #include "webkit/api/public/WebCursorInfo.h"
>  #include "webkit/api/public/WebImage.h"
> @@ -22,7 +23,7 @@
>  NSCursor* LoadCursor(const char* name, int x, int y) {
>   NSString* file_name = [NSString stringWithUTF8String:name];
>   DCHECK(file_name);
> -  NSImage* cursor_image = [NSImage imageNamed:file_name];
> +  NSImage* cursor_image = nsimage_cache::ImageNamed(file_name);
>   DCHECK(cursor_image);
>   return [[[NSCursor alloc] initWithImage:cursor_image
>                                   hotSpot:NSMakePoint(x, y)] autorelease];
>
>
>

Powered by Google App Engine
This is Rietveld 408576698