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

Unified Diff: chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc

Issue 2779653003: WindowTreeHostManager::GetRootWindowForDisplayId -> WmShell::GetRoo... (Closed)
Patch Set: Created 3 years, 9 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/wm/immersive_fullscreen_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc
diff --git a/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc b/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc
index 205403ed669e08fcb9375e0f286148e3598cf92c..252392f77c415108d7688b4305e50a3d2bb24359 100644
--- a/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc
+++ b/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc
@@ -4,15 +4,15 @@
#include "chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.h"
+#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/display/window_tree_host_manager.h"
-#include "ash/shell.h"
-#include "base/bind.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/paint_recorder.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/gfx/canvas.h"
namespace chromeos {
@@ -48,10 +48,9 @@ void AccessibilityCursorRingLayer::Set(const gfx::Point& location) {
display::Display display =
display::Screen::GetScreen()->GetDisplayMatching(bounds);
- aura::Window* root_window = ash::Shell::GetInstance()
- ->window_tree_host_manager()
- ->GetRootWindowForDisplayId(display.id());
- ash::WmWindow* root_wm_window = ash::WmWindow::Get(root_window);
+ ash::WmWindow* root_wm_window =
+ ash::WmShell::Get()->GetRootWindowForDisplayId(display.id());
+ aura::Window* root_window = root_wm_window->aura_window();
bounds = root_wm_window->ConvertRectFromScreen(bounds);
CreateOrUpdateLayer(root_window, "AccessibilityCursorRing", bounds);
}
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698