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

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: rebase & use aura::test::EventGenerator::MoveMouseToInHost 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
« no previous file with comments | « 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 efadf582cbb2334a18bf6601759b9cc3ac1a9190..8283b8db1361111b1fc529afc326f7d33015e887 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -528,6 +528,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:
@@ -1159,14 +1167,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;
« no previous file with comments | « ui/aura/root_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698