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

Unified Diff: ui/aura/root_window.h

Issue 10543174: Aura: Add Window::MoveCursorTo() taking relative location to the window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests with transform. Created 8 years, 6 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/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index bf1918c6e1461dbab3cacf42a4c99586d1c4519d..ce694a8946979526ea772679d3e600c7eef5f277 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -100,6 +100,10 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
focus_manager_ = focus_manager;
}
+#ifdef UNIT_TEST
+ RootWindowHost* host() { return host_.get(); }
+#endif
+
// Initializes the root window.
void Init();
@@ -126,7 +130,7 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
void ShowCursor(bool show);
// Moves the cursor to the specified location relative to the root window.
- void MoveCursorTo(const gfx::Point& location);
+ virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
// Clips the cursor movement to the root_window.
bool ConfineCursorToWindow();

Powered by Google App Engine
This is Rietveld 408576698