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

Unified Diff: ash/common/drag_drop/drag_image_view.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Remove wm_lookup. Created 3 years, 10 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/common/drag_drop/drag_image_view.cc
diff --git a/ash/common/drag_drop/drag_image_view.cc b/ash/common/drag_drop/drag_image_view.cc
index 2f9a9ffb6b6077142def579666bf425e138498cb..e30617af9bfccf2ee73d10e656a122b567b124a5 100644
--- a/ash/common/drag_drop/drag_image_view.cc
+++ b/ash/common/drag_drop/drag_image_view.cc
@@ -6,7 +6,6 @@
#include <memory>
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
@@ -122,7 +121,7 @@ void DragImageView::OnPaint(gfx::Canvas* canvas) {
if (GetImage().size() == drag_image_size_) {
canvas->DrawImageInt(GetImage(), 0, 0);
} else {
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget_.get());
+ WmWindow* window = WmWindow::Get(widget_.get()->GetNativeWindow());
sky 2017/03/02 19:04:52 no .get()
thanhph1 2017/03/02 22:24:17 Done.
const float device_scale =
window->GetDisplayNearestWindow().device_scale_factor();
// The drag image already has device scale factor applied. But

Powered by Google App Engine
This is Rietveld 408576698