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

Unified Diff: ash/shell.h

Issue 145313003: Implement cursor compositing mode on Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always update cursor image in SetCursor. Fixes initial wrong cursor. 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.h
diff --git a/ash/shell.h b/ash/shell.h
index 4d15cd3083da3d815489318c62031e64606d1e2c..8ad6d10742b67996d9bcffe22ee7cbc8d680122b 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -499,6 +499,13 @@ class ASH_EXPORT Shell
internal::DisplayErrorObserver* display_error_observer() {
return display_error_observer_.get();
}
+
+ // Toggles cursor compositing on/off. Native cursor is disabled when cursor
+ // compositing is enabled, and vice versa.
+ void SetCursorCompositingEnabled(bool enabled);
+ bool is_cursor_compositing_enabled() const {
+ return is_cursor_compositing_enabled_;
+ }
#endif // defined(USE_X11)
internal::ResolutionNotificationController*
@@ -698,6 +705,8 @@ class ASH_EXPORT Shell
// Listens for output changes and updates the display manager.
scoped_ptr<internal::DisplayChangeObserver> display_change_observer_;
+
+ bool is_cursor_compositing_enabled_;
oshima 2014/02/05 21:49:59 can we simply use one in CursorWindowController?
hshi1 2014/02/05 22:55:58 Done.
#endif // defined(USE_X11)
#endif // defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698