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

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

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize 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_tree.h ('k') | testing/buildbot/filters/ash_unittests_mash.filter » ('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 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
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | testing/buildbot/filters/ash_unittests_mash.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698