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

Unified Diff: ui/aura/desktop_host_win.cc

Issue 7977012: Adds a NonClientFrameView for generic toplevel windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
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();

Powered by Google App Engine
This is Rietveld 408576698