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 "ui/aura/window_tree_host.h" | 5 #include "ui/aura/window_tree_host.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "ui/aura/client/capture_client.h" | 8 #include "ui/aura/client/capture_client.h" |
9 #include "ui/aura/client/cursor_client.h" | 9 #include "ui/aura/client/cursor_client.h" |
10 #include "ui/aura/env.h" | 10 #include "ui/aura/env.h" |
11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
12 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
13 #include "ui/aura/window_targeter.h" | 13 #include "ui/aura/window_targeter.h" |
14 #include "ui/aura/window_tree_host_observer.h" | 14 #include "ui/aura/window_tree_host_observer.h" |
15 #include "ui/base/view_prop.h" | 15 #include "ui/base/view_prop.h" |
16 #include "ui/compositor/dip_util.h" | 16 #include "ui/compositor/dip_util.h" |
17 #include "ui/compositor/layer.h" | 17 #include "ui/compositor/layer.h" |
18 #include "ui/gfx/display.h" | 18 #include "ui/gfx/display.h" |
19 #include "ui/gfx/insets.h" | 19 #include "ui/gfx/geometry/insets.h" |
20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/geometry/point.h" |
21 #include "ui/gfx/point3_f.h" | 21 #include "ui/gfx/geometry/point3_f.h" |
22 #include "ui/gfx/point_conversions.h" | 22 #include "ui/gfx/point_conversions.h" |
23 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
24 #include "ui/gfx/size_conversions.h" | 24 #include "ui/gfx/size_conversions.h" |
25 | 25 |
26 namespace aura { | 26 namespace aura { |
27 | 27 |
28 const char kWindowTreeHostForAcceleratedWidget[] = | 28 const char kWindowTreeHostForAcceleratedWidget[] = |
29 "__AURA_WINDOW_TREE_HOST_ACCELERATED_WIDGET__"; | 29 "__AURA_WINDOW_TREE_HOST_ACCELERATED_WIDGET__"; |
30 | 30 |
31 float GetDeviceScaleFactorFromDisplay(Window* window) { | 31 float GetDeviceScaleFactorFromDisplay(Window* window) { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 client::CursorClient* cursor_client = client::GetCursorClient(window()); | 266 client::CursorClient* cursor_client = client::GetCursorClient(window()); |
267 if (cursor_client) { | 267 if (cursor_client) { |
268 const gfx::Display& display = | 268 const gfx::Display& display = |
269 gfx::Screen::GetScreenFor(window())->GetDisplayNearestWindow(window()); | 269 gfx::Screen::GetScreenFor(window())->GetDisplayNearestWindow(window()); |
270 cursor_client->SetDisplay(display); | 270 cursor_client->SetDisplay(display); |
271 } | 271 } |
272 dispatcher()->OnCursorMovedToRootLocation(root_location); | 272 dispatcher()->OnCursorMovedToRootLocation(root_location); |
273 } | 273 } |
274 | 274 |
275 } // namespace aura | 275 } // namespace aura |
OLD | NEW |