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

Unified Diff: ash/shell.cc

Issue 145313003: Implement cursor compositing mode on Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move more stuff into CursorWindowController. Created 6 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index a01990e3f85d5f06dfe9ce57a7837c351c3f897f..fd1ee7dab68d92511da4ecc1640b08e68cf6d6ef 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -17,6 +17,7 @@
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/desktop_background/desktop_background_view.h"
#include "ash/desktop_background/user_wallpaper_delegate.h"
+#include "ash/display/cursor_window_controller.h"
#include "ash/display/display_controller.h"
#include "ash/display/display_manager.h"
#include "ash/display/event_transformation_handler.h"
@@ -552,6 +553,12 @@ void Shell::SetTouchHudProjectionEnabled(bool enabled) {
ash::FirstRunHelper* Shell::CreateFirstRunHelper() {
return new ash::FirstRunHelperImpl;
}
+
+void Shell::SetCursorCompositingEnabled(bool enabled) {
+ display_controller_->cursor_window_controller()->SetCursorCompositingEnabled(
+ enabled);
+ cursor_manager_.SetNativeCursorEnabled(!enabled);
+}
#endif // defined(OS_CHROMEOS)
void Shell::DoInitialWorkspaceAnimation() {

Powered by Google App Engine
This is Rietveld 408576698