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

Unified Diff: ui/views/widget/desktop_root_window_host_linux.cc

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura build Created 8 years, 2 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 | « ui/views/widget/desktop_root_window_host_linux.h ('k') | ui/views/widget/desktop_root_window_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_root_window_host_linux.cc
diff --git a/ui/views/widget/desktop_root_window_host_linux.cc b/ui/views/widget/desktop_root_window_host_linux.cc
index 3b3df6d6030c3427f785f0c2c09978ef426bd51e..25d9846078b04ecd860bdd5f038c7a5f205ba9b6 100644
--- a/ui/views/widget/desktop_root_window_host_linux.cc
+++ b/ui/views/widget/desktop_root_window_host_linux.cc
@@ -682,13 +682,6 @@ void DesktopRootWindowHostLinux::SetCursor(gfx::NativeCursor cursor) {
SetCursorInternal(cursor);
}
-void DesktopRootWindowHostLinux::ShowCursor(bool show) {
- if (show == cursor_shown_)
- return;
- cursor_shown_ = show;
- SetCursorInternal(show ? current_cursor_ : invisible_cursor_);
-}
-
bool DesktopRootWindowHostLinux::QueryMouseLocation(
gfx::Point* location_return) {
::Window root_return, child_return;
@@ -782,6 +775,13 @@ void DesktopRootWindowHostLinux::PrepareForShutdown() {
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostLinux, aura::CursorClient implementation:
+void DesktopRootWindowHostLinux::ShowCursor(bool show) {
+ if (show == cursor_shown_)
+ return;
+ cursor_shown_ = show;
+ SetCursorInternal(show ? current_cursor_ : invisible_cursor_);
+}
+
bool DesktopRootWindowHostLinux::IsCursorVisible() const {
return cursor_shown_;
}
@@ -792,6 +792,16 @@ void DesktopRootWindowHostLinux::SetDeviceScaleFactor(
cursor_loader_.set_device_scale_factor(device_scale_factor);
}
+void DesktopRootWindowHostLinux::LockCursor() {
+ // TODO(mazda): Implement this.
+ NOTIMPLEMENTED();
+}
+
+void DesktopRootWindowHostLinux::UnlockCursor() {
+ // TODO(mazda): Implement this.
+ NOTIMPLEMENTED();
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostLinux, views::internal::InputMethodDelegate:
« no previous file with comments | « ui/views/widget/desktop_root_window_host_linux.h ('k') | ui/views/widget/desktop_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698