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

Unified Diff: ui/aura/root_window.cc

Issue 10399118: 2x Cursor support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remoev extra space Created 8 years, 7 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: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 6d30a32b17334dbcdaa33ac7e6fcb655126c1c66..13e1ac29c51e5e6b368ba1d1967259142db8c4e9 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -585,6 +585,18 @@ void RootWindow::OnCompositingEnded(ui::Compositor*) {
}
////////////////////////////////////////////////////////////////////////////////
+// RootWindow, ui::LayerDelegate implementation:
+void RootWindow::OnDeviceScaleFactorChanged(
+ float device_scale_factor) {
+ if (cursor_shown_)
+ ShowCursor(false);
+ host_->OnDeviceScaleFactorChanged(device_scale_factor);
+ Window::OnDeviceScaleFactorChanged(device_scale_factor);
+ if (cursor_shown_)
+ ShowCursor(true);
+}
+
+////////////////////////////////////////////////////////////////////////////////
// RootWindow, private:
void RootWindow::HandleMouseCaptureChanged(Window* old_capture_window) {

Powered by Google App Engine
This is Rietveld 408576698