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

Side by Side Diff: ui/aura/window_tree_host.cc

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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 unified diff | Download patch
« no previous file with comments | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/aura/window_tree_host_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "ui/aura/client/capture_client.h" 9 #include "ui/aura/client/capture_client.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
11 #include "ui/aura/env.h" 11 #include "ui/aura/env.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/aura/window_event_dispatcher.h" 13 #include "ui/aura/window_event_dispatcher.h"
14 #include "ui/aura/window_targeter.h" 14 #include "ui/aura/window_targeter.h"
15 #include "ui/aura/window_tree_host_observer.h" 15 #include "ui/aura/window_tree_host_observer.h"
16 #include "ui/base/view_prop.h" 16 #include "ui/base/view_prop.h"
17 #include "ui/compositor/dip_util.h" 17 #include "ui/compositor/dip_util.h"
18 #include "ui/compositor/layer.h" 18 #include "ui/compositor/layer.h"
19 #include "ui/gfx/display.h" 19 #include "ui/gfx/display.h"
20 #include "ui/gfx/insets.h" 20 #include "ui/gfx/geometry/insets.h"
21 #include "ui/gfx/point.h" 21 #include "ui/gfx/geometry/point.h"
22 #include "ui/gfx/point3_f.h" 22 #include "ui/gfx/geometry/point3_f.h"
23 #include "ui/gfx/point_conversions.h" 23 #include "ui/gfx/geometry/point_conversions.h"
24 #include "ui/gfx/screen.h" 24 #include "ui/gfx/screen.h"
25 #include "ui/gfx/size_conversions.h" 25 #include "ui/gfx/size_conversions.h"
26 26
27 namespace aura { 27 namespace aura {
28 28
29 const char kWindowTreeHostForAcceleratedWidget[] = 29 const char kWindowTreeHostForAcceleratedWidget[] =
30 "__AURA_WINDOW_TREE_HOST_ACCELERATED_WIDGET__"; 30 "__AURA_WINDOW_TREE_HOST_ACCELERATED_WIDGET__";
31 31
32 float GetDeviceScaleFactorFromDisplay(Window* window) { 32 float GetDeviceScaleFactorFromDisplay(Window* window) {
33 gfx::Display display = gfx::Screen::GetScreenFor(window)-> 33 gfx::Display display = gfx::Screen::GetScreenFor(window)->
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 client::CursorClient* cursor_client = client::GetCursorClient(window()); 269 client::CursorClient* cursor_client = client::GetCursorClient(window());
270 if (cursor_client) { 270 if (cursor_client) {
271 const gfx::Display& display = 271 const gfx::Display& display =
272 gfx::Screen::GetScreenFor(window())->GetDisplayNearestWindow(window()); 272 gfx::Screen::GetScreenFor(window())->GetDisplayNearestWindow(window());
273 cursor_client->SetDisplay(display); 273 cursor_client->SetDisplay(display);
274 } 274 }
275 dispatcher()->OnCursorMovedToRootLocation(root_location); 275 dispatcher()->OnCursorMovedToRootLocation(root_location);
276 } 276 }
277 277
278 } // namespace aura 278 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/aura/window_tree_host_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698