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

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: rewrote tests using EventGenerator Created 7 years, 11 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') | ash/wm/window_manager_unittest.cc » ('J')
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 9a8841b691be17e2e6f694ab8a4cc643db8adc34..288958a4f9b2ad0fa44d32fd848b52c1934c5b78 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -571,12 +571,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') | ash/wm/window_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698