OLD | NEW |
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 "services/ui/ws/window_tree.h" | 5 #include "services/ui/ws/window_tree.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2349 void WindowTree::WmUnlockCursor() { | 2349 void WindowTree::WmUnlockCursor() { |
2350 DCHECK(window_manager_state_); | 2350 DCHECK(window_manager_state_); |
2351 window_manager_state_->cursor_state().UnlockCursor(); | 2351 window_manager_state_->cursor_state().UnlockCursor(); |
2352 } | 2352 } |
2353 | 2353 |
2354 void WindowTree::WmSetCursorVisible(bool visible) { | 2354 void WindowTree::WmSetCursorVisible(bool visible) { |
2355 DCHECK(window_manager_state_); | 2355 DCHECK(window_manager_state_); |
2356 window_manager_state_->cursor_state().SetCursorVisible(visible); | 2356 window_manager_state_->cursor_state().SetCursorVisible(visible); |
2357 } | 2357 } |
2358 | 2358 |
| 2359 void WindowTree::WmSetCursorSize(ui::CursorSize cursor_size) { |
| 2360 DCHECK(window_manager_state_); |
| 2361 window_manager_state_->cursor_state().SetCursorSize(cursor_size); |
| 2362 } |
| 2363 |
2359 void WindowTree::WmSetGlobalOverrideCursor( | 2364 void WindowTree::WmSetGlobalOverrideCursor( |
2360 base::Optional<ui::CursorData> cursor) { | 2365 base::Optional<ui::CursorData> cursor) { |
2361 DCHECK(window_manager_state_); | 2366 DCHECK(window_manager_state_); |
2362 window_manager_state_->cursor_state().SetGlobalOverrideCursor(cursor); | 2367 window_manager_state_->cursor_state().SetGlobalOverrideCursor(cursor); |
2363 } | 2368 } |
2364 | 2369 |
2365 void WindowTree::WmMoveCursorToDisplayLocation(const gfx::Point& display_pixels, | 2370 void WindowTree::WmMoveCursorToDisplayLocation(const gfx::Point& display_pixels, |
2366 int64_t display_id) { | 2371 int64_t display_id) { |
2367 DCHECK(window_manager_state_); | 2372 DCHECK(window_manager_state_); |
2368 window_manager_state_->SetCursorLocation(display_pixels, display_id); | 2373 window_manager_state_->SetCursorLocation(display_pixels, display_id); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2544 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, | 2549 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, |
2545 effect_bitmask, callback); | 2550 effect_bitmask, callback); |
2546 } | 2551 } |
2547 | 2552 |
2548 void WindowTree::PerformOnDragDropDone() { | 2553 void WindowTree::PerformOnDragDropDone() { |
2549 client()->OnDragDropDone(); | 2554 client()->OnDragDropDone(); |
2550 } | 2555 } |
2551 | 2556 |
2552 } // namespace ws | 2557 } // namespace ws |
2553 } // namespace ui | 2558 } // namespace ui |
OLD | NEW |