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

Unified Diff: ui/aura/env.h

Issue 11412315: Make the cursor have separate mode for disabled mouse events and invisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years 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/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index d6db1edcb01022247b3ead72422293eb060926f2..6994f491995ae0c10ed3ef94180e0ad43f1af7f8 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -49,12 +49,9 @@ class AURA_EXPORT Env : public ui::EventTarget {
// Gets/sets the last mouse location seen in a mouse event in the screen
// coordinates.
const gfx::Point& last_mouse_location() const { return last_mouse_location_; }
- void SetLastMouseLocation(const Window& window,
- const gfx::Point& location_in_root);
-
- // If |cursor_shown| is false, sets the last_mouse_position to an invalid
- // location. If |cursor_shown| is true, restores the last_mouse_position.
- void SetCursorShown(bool cursor_shown);
+ void set_last_mouse_location(const gfx::Point& last_mouse_location) {
+ last_mouse_location_ = last_mouse_location;
+ }
// Whether any touch device is currently down.
bool is_touch_down() const { return is_touch_down_; }
@@ -103,9 +100,6 @@ class AURA_EXPORT Env : public ui::EventTarget {
int mouse_button_flags_;
// Location of last mouse event, in screen coordinates.
gfx::Point last_mouse_location_;
- // If the cursor is hidden, saves the previous last_mouse_position.
- gfx::Point hidden_cursor_location_;
- bool is_cursor_hidden_;
bool is_touch_down_;
bool render_white_bg_;
client::StackingClient* stacking_client_;

Powered by Google App Engine
This is Rietveld 408576698