Index: ui/aura/desktop_host_win.cc |
=================================================================== |
--- ui/aura/desktop_host_win.cc (revision 102277) |
+++ ui/aura/desktop_host_win.cc (working copy) |
@@ -58,6 +58,28 @@ |
SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREDRAW | SWP_NOREPOSITION); |
} |
+void DesktopHostWin::SetCursor(CursorType cursor_type) { |
+ switch (cursor_type) { |
+ case CURSOR_POINTER: |
+ ::SetCursor(LoadCursor(NULL, IDC_ARROW)); |
+ break; |
+ case CURSOR_LINK: |
+ ::SetCursor(LoadCursor(NULL, IDC_HAND)); |
+ break; |
+ case CURSOR_WAIT: |
+ ::SetCursor(LoadCursor(NULL, IDC_WAIT)); |
+ break; |
+ case CURSOR_SIZE_HORIZONTAL: |
+ ::SetCursor(LoadCursor(NULL, IDC_SIZEWE)); |
+ break; |
+ case CURSOR_SIZE_VERTICAL: |
+ ::SetCursor(LoadCursor(NULL, IDC_SIZENS)); |
+ break; |
+ default: |
+ break; |
+ } |
+} |
+ |
void DesktopHostWin::OnClose() { |
// TODO: this obviously shouldn't be here. |
MessageLoopForUI::current()->Quit(); |