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

Side by Side Diff: ui/wm/core/coordinate_conversion.cc

Issue 425363002: Moving coordinate conversion methods from ash/wm to ui/wm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nits Created 6 years, 4 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/wm/core/coordinate_conversion.h ('k') | ui/wm/wm.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/wm/core/coordinate_conversion.h"
6
7 #include "ui/aura/client/screen_position_client.h"
8 #include "ui/gfx/point.h"
9
10 namespace wm {
11
12 void ConvertPointToScreen(const aura::Window* window, gfx::Point* point) {
13 CHECK(aura::client::GetScreenPositionClient(window->GetRootWindow()));
sky 2014/08/04 17:17:09 Why the CHECK here? I think you should DCHECK both
mfomitchev 2014/08/04 21:16:19 This was copied from the original implementation w
sky 2014/08/04 21:49:56 Please convert to DCHECKs.
mfomitchev 2014/08/05 15:09:41 Done.
14 aura::client::GetScreenPositionClient(window->GetRootWindow())->
15 ConvertPointToScreen(window, point);
16 }
17
18 void ConvertPointFromScreen(const aura::Window* window,
19 gfx::Point* point_in_screen) {
20 aura::client::GetScreenPositionClient(window->GetRootWindow())->
21 ConvertPointFromScreen(window, point_in_screen);
22 }
23
24 } // namespace wm
OLDNEW
« no previous file with comments | « ui/wm/core/coordinate_conversion.h ('k') | ui/wm/wm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698