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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Thread to the PlatformWindow. 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
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/aura/mus/window_tree_client.h" 5 #include "ui/aura/mus/window_tree_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 tree_->PerformWindowMove(current_move_loop_change_, window_mus->server_id(), 1993 tree_->PerformWindowMove(current_move_loop_change_, window_mus->server_id(),
1994 source, cursor_location); 1994 source, cursor_location);
1995 } 1995 }
1996 1996
1997 void WindowTreeClient::OnWindowTreeHostCancelWindowMove( 1997 void WindowTreeClient::OnWindowTreeHostCancelWindowMove(
1998 WindowTreeHostMus* window_tree_host) { 1998 WindowTreeHostMus* window_tree_host) {
1999 tree_->CancelWindowMove( 1999 tree_->CancelWindowMove(
2000 WindowMus::Get(window_tree_host->window())->server_id()); 2000 WindowMus::Get(window_tree_host->window())->server_id());
2001 } 2001 }
2002 2002
2003 void WindowTreeClient::OnWindowTreeHostMoveCursorToDisplayLocation(
2004 const gfx::Point& location_in_pixels,
2005 int64_t display_id) {
2006 DCHECK(window_manager_client_);
2007 if (window_manager_client_) {
2008 window_manager_client_->WmMoveCursorToDisplayLocation(location_in_pixels,
2009 display_id);
2010 }
2011 }
2012
2003 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel( 2013 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel(
2004 const std::map<std::string, std::vector<uint8_t>>* properties) { 2014 const std::map<std::string, std::vector<uint8_t>>* properties) {
2005 std::unique_ptr<WindowPortMus> window_port = 2015 std::unique_ptr<WindowPortMus> window_port =
2006 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); 2016 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL);
2007 roots_.insert(window_port.get()); 2017 roots_.insert(window_port.get());
2008 2018
2009 window_port->set_server_id(MakeTransportId(client_id_, next_window_id_++)); 2019 window_port->set_server_id(MakeTransportId(client_id_, next_window_id_++));
2010 RegisterWindowMus(window_port.get()); 2020 RegisterWindowMus(window_port.get());
2011 2021
2012 std::unordered_map<std::string, std::vector<uint8_t>> transport_properties; 2022 std::unordered_map<std::string, std::vector<uint8_t>> transport_properties;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 } 2150 }
2141 2151
2142 void WindowTreeClient::OnCompositingLockStateChanged( 2152 void WindowTreeClient::OnCompositingLockStateChanged(
2143 ui::Compositor* compositor) {} 2153 ui::Compositor* compositor) {}
2144 2154
2145 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { 2155 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) {
2146 compositor->RemoveObserver(this); 2156 compositor->RemoveObserver(this);
2147 } 2157 }
2148 2158
2149 } // namespace aura 2159 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698