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

Side by Side Diff: services/ui/ws/window_manager_state.cc

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: 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 | « services/ui/ws/window_manager_state.h ('k') | services/ui/ws/window_tree.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/ws/window_manager_state.h" 5 #include "services/ui/ws/window_manager_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 void WindowManagerState::ReleaseCaptureBlockedByModalWindow( 186 void WindowManagerState::ReleaseCaptureBlockedByModalWindow(
187 const ServerWindow* modal_window) { 187 const ServerWindow* modal_window) {
188 event_dispatcher_.ReleaseCaptureBlockedByModalWindow(modal_window); 188 event_dispatcher_.ReleaseCaptureBlockedByModalWindow(modal_window);
189 } 189 }
190 190
191 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { 191 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() {
192 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); 192 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow();
193 } 193 }
194 194
195 void WindowManagerState::SetCursorLocation(
196 const gfx::Point& screen_pixel_location) {
197 event_dispatcher()->SetMousePointerDisplayLocation(screen_pixel_location, -1);
Elliot Glaysher 2017/05/31 23:47:32 This here is obviously incorrect in the multi-disp
riajiang 2017/06/01 17:06:07 In WindowTreeHost::MoveCursorToInternal, can we co
198 UpdateNativeCursorFromDispatcher();
199 }
200
195 void WindowManagerState::SetDragDropSourceWindow( 201 void WindowManagerState::SetDragDropSourceWindow(
196 DragSource* drag_source, 202 DragSource* drag_source,
197 ServerWindow* window, 203 ServerWindow* window,
198 DragTargetConnection* source_connection, 204 DragTargetConnection* source_connection,
199 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, 205 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data,
200 uint32_t drag_operation) { 206 uint32_t drag_operation) {
201 int32_t drag_pointer = MouseEvent::kMousePointerId; 207 int32_t drag_pointer = MouseEvent::kMousePointerId;
202 if (in_flight_event_details_ && 208 if (in_flight_event_details_ &&
203 in_flight_event_details_->event->IsPointerEvent()) { 209 in_flight_event_details_->event->IsPointerEvent()) {
204 drag_pointer = 210 drag_pointer =
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 window->RemoveObserver(this); 766 window->RemoveObserver(this);
761 orphaned_window_manager_display_roots_.erase(iter); 767 orphaned_window_manager_display_roots_.erase(iter);
762 return; 768 return;
763 } 769 }
764 } 770 }
765 NOTREACHED(); 771 NOTREACHED();
766 } 772 }
767 773
768 } // namespace ws 774 } // namespace ws
769 } // namespace ui 775 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698