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

Unified Diff: ash/wm/native_cursor_manager_ash_mus.cc

Issue 2957313003: Make ShellPortMash also dispatch to cursor_manager in mus mode. (Closed)
Patch Set: Check GetAshConfig() 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | testing/buildbot/filters/ash_unittests_mus.filter » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/native_cursor_manager_ash_mus.cc
diff --git a/ash/wm/native_cursor_manager_ash_mus.cc b/ash/wm/native_cursor_manager_ash_mus.cc
index b8ea0eaff86fef243a252b614973b5d87f3c32df..c36b5314a41a990fb0cbca672256ce0b92a80760 100644
--- a/ash/wm/native_cursor_manager_ash_mus.cc
+++ b/ash/wm/native_cursor_manager_ash_mus.cc
@@ -7,8 +7,8 @@
#include "ash/display/cursor_window_controller.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
-#include "ash/shell_port.h"
#include "ui/aura/env.h"
+#include "ui/aura/mus/window_manager_delegate.h"
#include "ui/aura/mus/window_port_mus.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_tree_host.h"
@@ -42,7 +42,7 @@ void SetCursorOnAllRootWindows(gfx::NativeCursor cursor) {
// As the window manager, tell mus to use |mojo_cursor| everywhere. We do
// this instead of trying to set per-window because otherwise we run into the
// event targeting issue.
- ShellPort::Get()->SetGlobalOverrideCursor(mojo_cursor);
+ Shell::window_manager_client()->SetGlobalOverrideCursor(mojo_cursor);
// Make sure the local state is set properly, so that local queries show that
// we set the cursor.
@@ -57,10 +57,7 @@ void SetCursorOnAllRootWindows(gfx::NativeCursor cursor) {
void NotifyCursorVisibilityChange(bool visible) {
// Communicate the cursor visibility state to the mus server.
- if (visible)
- ShellPort::Get()->ShowCursor();
- else
- ShellPort::Get()->HideCursor();
+ Shell::window_manager_client()->SetCursorVisible(visible);
// Communicate the cursor visibility change to our local root window objects.
aura::Window::Windows root_windows = Shell::Get()->GetAllRootWindows();
@@ -184,7 +181,7 @@ void NativeCursorManagerAshMus::SetCursorSize(
::wm::NativeCursorManagerDelegate* delegate) {
delegate->CommitCursorSize(cursor_size);
- ShellPort::Get()->SetCursorSize(cursor_size);
+ Shell::window_manager_client()->SetCursorSize(cursor_size);
Shell::Get()
->window_tree_host_manager()
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | testing/buildbot/filters/ash_unittests_mus.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698