OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/root_window.h" | 5 #include "ui/aura/root_window.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "ui/aura/client/activation_client.h" | 15 #include "ui/aura/client/activation_client.h" |
16 #include "ui/aura/client/capture_client.h" | 16 #include "ui/aura/client/capture_client.h" |
17 #include "ui/aura/client/cursor_client.h" | 17 #include "ui/aura/client/cursor_client.h" |
18 #include "ui/aura/client/event_client.h" | 18 #include "ui/aura/client/event_client.h" |
19 #include "ui/aura/client/focus_client.h" | 19 #include "ui/aura/client/focus_client.h" |
20 #include "ui/aura/client/screen_position_client.h" | 20 #include "ui/aura/client/screen_position_client.h" |
21 #include "ui/aura/env.h" | 21 #include "ui/aura/env.h" |
22 #include "ui/aura/root_window_host.h" | 22 #include "ui/aura/root_window_host.h" |
23 #include "ui/aura/root_window_observer.h" | 23 #include "ui/aura/root_window_observer.h" |
24 #include "ui/aura/root_window_transformer.h" | 24 #include "ui/aura/root_window_transformer.h" |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 } | 1205 } |
1206 | 1206 |
1207 gfx::Transform RootWindow::GetInverseRootTransform() const { | 1207 gfx::Transform RootWindow::GetInverseRootTransform() const { |
1208 float scale = ui::GetDeviceScaleFactor(layer()); | 1208 float scale = ui::GetDeviceScaleFactor(layer()); |
1209 gfx::Transform transform; | 1209 gfx::Transform transform; |
1210 transform.Scale(1.0f / scale, 1.0f / scale); | 1210 transform.Scale(1.0f / scale, 1.0f / scale); |
1211 return transformer_->GetInverseTransform() * transform; | 1211 return transformer_->GetInverseTransform() * transform; |
1212 } | 1212 } |
1213 | 1213 |
1214 } // namespace aura | 1214 } // namespace aura |
OLD | NEW |