OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ash/display/event_transformation_handler.h" | 5 #include "ash/display/event_transformation_handler.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "ash/screen_ash.h" | |
10 #include "ash/shell.h" | 9 #include "ash/shell.h" |
11 #include "ash/wm/coordinate_conversion.h" | 10 #include "ash/wm/coordinate_conversion.h" |
12 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
13 #include "ui/aura/root_window.h" | 12 #include "ui/aura/root_window.h" |
14 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
15 #include "ui/compositor/dip_util.h" | 14 #include "ui/compositor/dip_util.h" |
16 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
17 #include "ui/gfx/display.h" | 16 #include "ui/gfx/display.h" |
18 #include "ui/gfx/screen.h" | 17 #include "ui/gfx/screen.h" |
19 | 18 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 85 } |
87 | 86 |
88 float area_ratio_sqrt = std::sqrt(area_ratio_map.begin()->second); | 87 float area_ratio_sqrt = std::sqrt(area_ratio_map.begin()->second); |
89 event->set_radius_x(event->radius_x() * area_ratio_sqrt); | 88 event->set_radius_x(event->radius_x() * area_ratio_sqrt); |
90 event->set_radius_y(event->radius_y() * area_ratio_sqrt); | 89 event->set_radius_y(event->radius_y() * area_ratio_sqrt); |
91 } | 90 } |
92 #endif // defined(OS_CHROMEOS) | 91 #endif // defined(OS_CHROMEOS) |
93 | 92 |
94 } // namespace internal | 93 } // namespace internal |
95 } // namespace ash | 94 } // namespace ash |
OLD | NEW |