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

Unified Diff: views/widget/native_widget_view.h

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 | « no previous file | views/widget/native_widget_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_view.h
diff --git a/views/widget/native_widget_view.h b/views/widget/native_widget_view.h
index 0a729a0b745ba02fc7d8b08671b0a2a11e4c141c..88131132a55f7a67ef5730211a8405c09e5cef9a 100644
--- a/views/widget/native_widget_view.h
+++ b/views/widget/native_widget_view.h
@@ -40,6 +40,8 @@ class VIEWS_EXPORT NativeWidgetView : public View {
delete_native_widget_ = delete_native_widget;
}
+ void set_cursor(gfx::NativeCursor cursor) { cursor_ = cursor; }
+
// Overridden from View:
virtual void SchedulePaintInternal(const gfx::Rect& r) OVERRIDE;
virtual void MarkLayerDirty() OVERRIDE;
@@ -53,6 +55,7 @@ class VIEWS_EXPORT NativeWidgetView : public View {
View* child) OVERRIDE;
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
+ virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE;
virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
@@ -86,6 +89,9 @@ class VIEWS_EXPORT NativeWidgetView : public View {
bool delete_native_widget_;
+ // The cursor set for the associated widget.
+ gfx::NativeCursor cursor_;
+
DISALLOW_COPY_AND_ASSIGN(NativeWidgetView);
};
« no previous file with comments | « no previous file | views/widget/native_widget_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698