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

Side by Side Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 years, 5 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 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 "ui/views/mus/desktop_window_tree_host_mus.h" 5 #include "ui/views/mus/desktop_window_tree_host_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 delegate->CommitVisibility(visible); 158 delegate->CommitVisibility(visible);
159 159
160 if (visible) { 160 if (visible) {
161 SetCursor(delegate->GetCursor(), delegate); 161 SetCursor(delegate->GetCursor(), delegate);
162 } else { 162 } else {
163 aura::WindowPortMus::Get(window_)->SetCursor( 163 aura::WindowPortMus::Get(window_)->SetCursor(
164 ui::CursorData(ui::CursorType::kNone)); 164 ui::CursorData(ui::CursorType::kNone));
165 } 165 }
166 } 166 }
167 167
168 void SetCursorSet(ui::CursorSetType cursor_set, 168 void SetCursorSize(ui::CursorSize cursor_size,
169 wm::NativeCursorManagerDelegate* delegate) override { 169 wm::NativeCursorManagerDelegate* delegate) override {
170 // TODO(erg): For now, ignore the difference between SET_NORMAL and 170 // TODO(erg): For now, ignore the difference between SET_NORMAL and
171 // SET_LARGE here. This feels like a thing that mus should decide instead. 171 // SET_LARGE here. This feels like a thing that mus should decide instead.
172 // 172 //
173 // Also, it's NOTIMPLEMENTED() in the desktop version!? Including not 173 // Also, it's NOTIMPLEMENTED() in the desktop version!? Including not
174 // acknowledging the call in the delegate. 174 // acknowledging the call in the delegate.
175 NOTIMPLEMENTED(); 175 NOTIMPLEMENTED();
176 } 176 }
177 177
178 void SetMouseEventsEnabled( 178 void SetMouseEventsEnabled(
179 bool enabled, 179 bool enabled,
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 } 815 }
816 const gfx::Rect old_bounds_in_pixels = GetBoundsInPixels(); 816 const gfx::Rect old_bounds_in_pixels = GetBoundsInPixels();
817 WindowTreeHostMus::SetBoundsInPixels(final_bounds_in_pixels); 817 WindowTreeHostMus::SetBoundsInPixels(final_bounds_in_pixels);
818 if (old_bounds_in_pixels.size() != final_bounds_in_pixels.size()) { 818 if (old_bounds_in_pixels.size() != final_bounds_in_pixels.size()) {
819 SendClientAreaToServer(); 819 SendClientAreaToServer();
820 SendHitTestMaskToServer(); 820 SendHitTestMaskToServer();
821 } 821 }
822 } 822 }
823 823
824 } // namespace views 824 } // namespace views
OLDNEW
« no previous file with comments | « ui/base/cursor/image_cursors.cc ('k') | ui/views/widget/desktop_aura/desktop_native_cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698