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

Unified Diff: ash/shell.cc

Issue 11888003: Differentiate invisible cursor mode and disabled mouse events mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | ash/wm/session_state_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 19d8a119060c8899bb3b117a5771b5413b84c042..39147ce794f54ff40850f957f0de89e4833b0f58 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -582,12 +582,14 @@ void Shell::Init() {
user_wallpaper_delegate_->InitializeWallpaper();
if (initially_hide_cursor_)
- cursor_manager_.DisableMouseEvents();
+ cursor_manager_.HideCursor();
cursor_manager_.SetCursor(ui::kCursorPointer);
- // Cursor might have been hidden by somethign other than chrome.
- // Let the first mouse event show the cursor.
- env_filter_->set_cursor_hidden_by_filter(true);
+ if (!cursor_manager_.IsCursorVisible()) {
+ // Cursor might have been hidden by something other than chrome.
+ // Let the first mouse event show the cursor.
+ env_filter_->set_cursor_hidden_by_filter(true);
+ }
}
void Shell::ShowContextMenu(const gfx::Point& location_in_screen) {
« no previous file with comments | « no previous file | ash/wm/session_state_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698