Index: ui/aura/env.cc |
diff --git a/ui/aura/env.cc b/ui/aura/env.cc |
index 19083d9d660b492d0fb42122f9e7ebfbd3ce1223..bd094c0feb17f739e98ed3753cc569cb7fcd5da4 100644 |
--- a/ui/aura/env.cc |
+++ b/ui/aura/env.cc |
@@ -5,7 +5,6 @@ |
#include "ui/aura/env.h" |
#include "base/command_line.h" |
-#include "ui/aura/client/screen_position_client.h" |
#include "ui/aura/env_observer.h" |
#include "ui/aura/root_window_host.h" |
#include "ui/aura/window.h" |
@@ -26,7 +25,6 @@ Env* Env::instance_ = NULL; |
Env::Env() |
: mouse_button_flags_(0), |
- is_cursor_hidden_(false), |
is_touch_down_(false), |
render_white_bg_(true), |
stacking_client_(NULL) { |
@@ -64,28 +62,6 @@ void Env::RemoveObserver(EnvObserver* observer) { |
observers_.RemoveObserver(observer); |
} |
-void Env::SetLastMouseLocation(const Window& window, |
- const gfx::Point& location_in_root) { |
- last_mouse_location_ = location_in_root; |
- client::ScreenPositionClient* client = |
- client::GetScreenPositionClient(window.GetRootWindow()); |
- if (client) |
- client->ConvertPointToScreen(&window, &last_mouse_location_); |
-} |
- |
-void Env::SetCursorShown(bool cursor_shown) { |
- if (cursor_shown) { |
- // Protect against restoring a position that hadn't been saved. |
- if (is_cursor_hidden_) |
- last_mouse_location_ = hidden_cursor_location_; |
- is_cursor_hidden_ = false; |
- } else { |
- hidden_cursor_location_ = last_mouse_location_; |
- last_mouse_location_ = gfx::Point(-10000, -10000); |
- is_cursor_hidden_ = true; |
- } |
-} |
- |
#if !defined(OS_MACOSX) |
MessageLoop::Dispatcher* Env::GetDispatcher() { |
#if defined(USE_X11) |