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

Unified Diff: trunk/src/ash/wm/ash_native_cursor_manager.cc

Issue 233693002: Revert 263043 "Remove obsolete scale related APIs for cursor" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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: trunk/src/ash/wm/ash_native_cursor_manager.cc
===================================================================
--- trunk/src/ash/wm/ash_native_cursor_manager.cc (revision 263047)
+++ trunk/src/ash/wm/ash_native_cursor_manager.cc (working copy)
@@ -120,6 +120,16 @@
#endif
}
+void AshNativeCursorManager::SetScale(
+ float scale,
+ ::wm::NativeCursorManagerDelegate* delegate) {
+ image_cursors_->SetScale(scale);
+ delegate->CommitScale(scale);
+
+ // Sets the cursor to reflect the scale change immediately.
+ SetCursor(delegate->GetCursor(), delegate);
+}
+
void AshNativeCursorManager::SetVisibility(
bool visible,
::wm::NativeCursorManagerDelegate* delegate) {
« no previous file with comments | « trunk/src/ash/wm/ash_native_cursor_manager.h ('k') | trunk/src/ash/wm/ash_native_cursor_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698