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

Unified Diff: views/widget/native_widget_view.cc

Issue 7633018: views-desktop: Fix updating the cursor for windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « views/widget/native_widget_view.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_view.cc
diff --git a/views/widget/native_widget_view.cc b/views/widget/native_widget_view.cc
index 85cb30ef6470de0c12af90a904b301b1f6e68e70..c816c0f0aad548bd57ab523bf5a724d5b82af974 100644
--- a/views/widget/native_widget_view.cc
+++ b/views/widget/native_widget_view.cc
@@ -18,7 +18,8 @@ const char NativeWidgetView::kViewClassName[] = "views/NativeWidgetView";
NativeWidgetView::NativeWidgetView(NativeWidgetViews* native_widget)
: native_widget_(native_widget),
sent_create_(false),
- delete_native_widget_(true) {
+ delete_native_widget_(true),
+ cursor_(NULL) {
}
NativeWidgetView::~NativeWidgetView() {
@@ -69,6 +70,10 @@ void NativeWidgetView::OnPaint(gfx::Canvas* canvas) {
delegate()->OnNativeWidgetPaint(canvas);
}
+gfx::NativeCursor NativeWidgetView::GetCursor(const MouseEvent& event) {
+ return cursor_;
+}
+
bool NativeWidgetView::OnMousePressed(const MouseEvent& event) {
MouseEvent e(event, this);
return delegate()->OnMouseEvent(event);
« no previous file with comments | « views/widget/native_widget_view.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698