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

Unified Diff: ui/aura/root_window.cc

Issue 14466005: Magnifier: Prevent the cursor jumping on HiDPI display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« ash/magnifier/magnification_controller.cc ('K') | « ui/aura/root_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 5339fff018ef6850bbd59a4d90bc9ffa16455881..1dfb3da59113b7a17d640b29a0430284b57eecc2 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -552,6 +552,14 @@ void RootWindow::SetRootWindowTransformer(
OnHostResized(host_->GetBounds().size());
}
+gfx::Transform RootWindow::GetRootTransform() const {
+ float scale = ui::GetDeviceScaleFactor(layer());
+ gfx::Transform transform;
+ transform.Scale(scale, scale);
+ transform *= transformer_->GetTransform();
+ return transform;
+}
+
////////////////////////////////////////////////////////////////////////////////
// RootWindow, ui::EventTarget implementation:
@@ -1170,14 +1178,6 @@ void RootWindow::SynthesizeMouseMoveEvent() {
OnHostMouseEvent(&event);
}
-gfx::Transform RootWindow::GetRootTransform() const {
- float scale = ui::GetDeviceScaleFactor(layer());
- gfx::Transform transform;
- transform.Scale(scale, scale);
- transform *= transformer_->GetTransform();
- return transform;
-}
-
gfx::Transform RootWindow::GetInverseRootTransform() const {
float scale = ui::GetDeviceScaleFactor(layer());
gfx::Transform transform;
« ash/magnifier/magnification_controller.cc ('K') | « ui/aura/root_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698