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

Side by Side Diff: ui/wm/core/coordinate_conversion.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 6 years 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/views/win/hwnd_message_handler.cc ('k') | ui/wm/core/cursor_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/wm/core/coordinate_conversion.h" 5 #include "ui/wm/core/coordinate_conversion.h"
6 6
7 #include "ui/aura/client/screen_position_client.h" 7 #include "ui/aura/client/screen_position_client.h"
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/geometry/point.h"
9 9
10 namespace wm { 10 namespace wm {
11 11
12 void ConvertPointToScreen(const aura::Window* window, gfx::Point* point) { 12 void ConvertPointToScreen(const aura::Window* window, gfx::Point* point) {
13 DCHECK(window); 13 DCHECK(window);
14 DCHECK(window->GetRootWindow()); 14 DCHECK(window->GetRootWindow());
15 DCHECK(aura::client::GetScreenPositionClient(window->GetRootWindow())); 15 DCHECK(aura::client::GetScreenPositionClient(window->GetRootWindow()));
16 aura::client::GetScreenPositionClient(window->GetRootWindow())-> 16 aura::client::GetScreenPositionClient(window->GetRootWindow())->
17 ConvertPointToScreen(window, point); 17 ConvertPointToScreen(window, point);
18 } 18 }
19 19
20 void ConvertPointFromScreen(const aura::Window* window, 20 void ConvertPointFromScreen(const aura::Window* window,
21 gfx::Point* point_in_screen) { 21 gfx::Point* point_in_screen) {
22 DCHECK(window); 22 DCHECK(window);
23 DCHECK(window->GetRootWindow()); 23 DCHECK(window->GetRootWindow());
24 DCHECK(aura::client::GetScreenPositionClient(window->GetRootWindow())); 24 DCHECK(aura::client::GetScreenPositionClient(window->GetRootWindow()));
25 aura::client::GetScreenPositionClient(window->GetRootWindow())-> 25 aura::client::GetScreenPositionClient(window->GetRootWindow())->
26 ConvertPointFromScreen(window, point_in_screen); 26 ConvertPointFromScreen(window, point_in_screen);
27 } 27 }
28 28
29 } // namespace wm 29 } // namespace wm
OLDNEW
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | ui/wm/core/cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698