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

Unified Diff: webkit/tools/test_shell/test_webview_delegate_win.cc

Issue 15088: Add support for custom cursors set by windowless plugins. Windowless plugins... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « webkit/tools/test_shell/test_webview_delegate_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate_win.cc
===================================================================
--- webkit/tools/test_shell/test_webview_delegate_win.cc (revision 7750)
+++ webkit/tools/test_shell/test_webview_delegate_win.cc (working copy)
@@ -36,8 +36,6 @@
// WebViewDelegate -----------------------------------------------------------
TestWebViewDelegate::~TestWebViewDelegate() {
- if (custom_cursor_)
- DestroyIcon(custom_cursor_);
RevokeDragDrop(shell_->webViewWnd());
}
@@ -89,17 +87,9 @@
void TestWebViewDelegate::SetCursor(WebWidget* webwidget,
const WebCursor& cursor) {
if (WebWidgetHost* host = GetHostForWidget(webwidget)) {
- if (custom_cursor_) {
- DestroyIcon(custom_cursor_);
- custom_cursor_ = NULL;
- }
- if (cursor.IsCustom()) {
- custom_cursor_ = cursor.GetCustomCursor();
- host->SetCursor(custom_cursor_);
- } else {
- HINSTANCE mod_handle = GetModuleHandle(NULL);
- host->SetCursor(cursor.GetCursor(mod_handle));
- }
+ current_cursor_ = cursor;
+ HINSTANCE mod_handle = GetModuleHandle(NULL);
+ host->SetCursor(current_cursor_.GetCursor(mod_handle));
}
}
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698