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

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 2660873002: Move two utility functions from ash/screen_util.h to ui/wm/core/coordinate_conversion.h (Closed)
Patch Set: Created 3 years, 11 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
Index: ash/magnifier/magnification_controller.cc
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc
index c677caae5c56b2b741f3a8ae9c87dffc785470b0..e6c987d1525dc503e0d563ca4ef5bad4137e129d 100644
--- a/ash/magnifier/magnification_controller.cc
+++ b/ash/magnifier/magnification_controller.cc
@@ -15,7 +15,6 @@
#include "ash/host/ash_window_tree_host.h"
#include "ash/host/root_window_transformer.h"
#include "ash/root_window_controller.h"
-#include "ash/screen_util.h"
#include "ash/shell.h"
#include "base/command_line.h"
#include "base/synchronization/waitable_event.h"
@@ -437,8 +436,8 @@ void MagnificationControllerImpl::HandleFocusedNodeChanged(
if (node_bounds_in_screen.IsEmpty())
return;
- gfx::Rect node_bounds_in_root =
- ScreenUtil::ConvertRectFromScreen(root_window_, node_bounds_in_screen);
+ gfx::Rect node_bounds_in_root = node_bounds_in_screen;
+ ::wm::ConvertRectFromScreen(root_window_, &node_bounds_in_root);
if (GetViewportRect().Contains(node_bounds_in_root))
return;
« no previous file with comments | « ash/common/wm_window.cc ('k') | ash/screen_util.h » ('j') | ui/wm/core/coordinate_conversion.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698