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

Unified Diff: webkit/tools/test_shell/mac/test_webview_delegate.mm

Issue 11427: Cursor support including custom cursors (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
Index: webkit/tools/test_shell/mac/test_webview_delegate.mm
===================================================================
--- webkit/tools/test_shell/mac/test_webview_delegate.mm (revision 5577)
+++ webkit/tools/test_shell/mac/test_webview_delegate.mm (working copy)
@@ -6,6 +6,7 @@
#import <Cocoa/Cocoa.h>
#include "base/string_util.h"
+#include "webkit/glue/webcursor.h"
#include "webkit/glue/webview.h"
#include "webkit/tools/test_shell/test_shell.h"
@@ -61,7 +62,8 @@
void TestWebViewDelegate::SetCursor(WebWidget* webwidget,
const WebCursor& cursor) {
- //TODO: Mac cursor handling
+ NSCursor* ns_cursor = cursor.GetCursor();
+ [ns_cursor set];
}
void TestWebViewDelegate::GetWindowRect(WebWidget* webwidget,

Powered by Google App Engine
This is Rietveld 408576698