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

Unified Diff: ash/shelf/shelf_view.cc

Issue 2915553004: mash: Remove last WmWindow uses in ash/shelf. (Closed)
Patch Set: Created 3 years, 7 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/shelf/shelf_controller.cc ('k') | ash/shelf/shelf_widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index b8c65bc101c8aeac9c4d8efd7ee74bc451e6d508..62a52fafc3e1f587719e263f92ab7479bba82d5a 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -27,7 +27,6 @@
#include "ash/shell_port.h"
#include "ash/strings/grit/ash_strings.h"
#include "ash/wm/root_window_finder.h"
-#include "ash/wm_window.h"
#include "base/auto_reset.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
@@ -1040,10 +1039,9 @@ bool ShelfView::HandleRipOffDrag(const ui::LocatedEvent& event) {
DCHECK_NE(-1, current_index);
std::string dragged_app_id = model_->items()[current_index].id.app_id;
- gfx::Point screen_location =
- WmWindow::Get(GetWidget()->GetNativeWindow())
- ->GetRootWindow()
- ->ConvertPointToScreen(event.root_location());
+ gfx::Point screen_location = event.root_location();
+ ::wm::ConvertPointToScreen(GetWidget()->GetNativeWindow()->GetRootWindow(),
+ &screen_location);
// To avoid ugly forwards and backwards flipping we use different constants
// for ripping off / re-inserting the items.
« no previous file with comments | « ash/shelf/shelf_controller.cc ('k') | ash/shelf/shelf_widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698