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

Side by Side Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Fix up a few comments. Created 3 years, 6 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/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus_delegate.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/mus/window_tree_host_mus.h" 5 #include "ui/aura/mus/window_tree_host_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 #include "ui/aura/mus/input_method_mus.h" 9 #include "ui/aura/mus/input_method_mus.h"
10 #include "ui/aura/mus/window_port_mus.h" 10 #include "ui/aura/mus/window_port_mus.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 OnHostCloseRequested(); 193 OnHostCloseRequested();
194 } 194 }
195 195
196 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { 196 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() {
197 // TODO: This should read the profile from mus. crbug.com/647510 197 // TODO: This should read the profile from mus. crbug.com/647510
198 return gfx::ICCProfile(); 198 return gfx::ICCProfile();
199 } 199 }
200 200
201 void WindowTreeHostMus::MoveCursorToScreenLocationInPixels( 201 void WindowTreeHostMus::MoveCursorToScreenLocationInPixels(
202 const gfx::Point& location_in_pixels) { 202 const gfx::Point& location_in_pixels) {
203 // TODO: this needs to message the server http://crbug.com/693340. Setting 203 gfx::Point dip_location = location_in_pixels;
204 // the location is really only appropriate in tests, outside of tests this 204 ConvertScreenInPixelsToDIP(&dip_location);
riajiang 2017/06/01 21:27:30 EventDispatcher::SetMousePointerDisplayLocation ex
Elliot Glaysher 2017/06/01 22:05:23 Done, though I remain confused about when and wher
riajiang 2017/06/01 22:20:18 Event root_location has changed to be in pixels in
205 // value is ignored. 205 delegate_->OnWindowTreeHostMoveCursorToDisplayLocation(dip_location,
206 NOTIMPLEMENTED(); 206 display_id_);
207
207 Env::GetInstance()->set_last_mouse_location(location_in_pixels); 208 Env::GetInstance()->set_last_mouse_location(location_in_pixels);
208 } 209 }
209 210
210 } // namespace aura 211 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698