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

Unified Diff: ash/common/system/status_area_widget_delegate.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/system/status_area_widget_delegate.cc
diff --git a/ash/common/system/status_area_widget_delegate.cc b/ash/common/system/status_area_widget_delegate.cc
index 49866a90a799d3574116a4be09fa874a954ba306..29445d513453c28478242d00c4cc35f20f6d7e2e 100644
--- a/ash/common/system/status_area_widget_delegate.cc
+++ b/ash/common/system/status_area_widget_delegate.cc
@@ -11,7 +11,6 @@
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/shelf/wm_shelf_util.h"
#include "ash/common/system/tray/tray_constants.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
@@ -83,7 +82,7 @@ const views::Widget* StatusAreaWidgetDelegate::GetWidget() const {
void StatusAreaWidgetDelegate::OnGestureEvent(ui::GestureEvent* event) {
views::Widget* target_widget =
static_cast<views::View*>(event->target())->GetWidget();
- WmWindow* target_window = WmLookup::Get()->GetWindowForWidget(target_widget);
+ WmWindow* target_window = WmWindow::Get(target_widget->GetNativeWindow());
WmShelf* shelf = target_window->GetRootWindowController()->GetShelf();
if (shelf->ProcessGestureEvent(*event))
event->StopPropagation();

Powered by Google App Engine
This is Rietveld 408576698