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

Unified Diff: ash/common/system/tray/tray_event_filter.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. 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
« no previous file with comments | « ash/common/system/tray/tray_bubble_wrapper.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_event_filter.cc
diff --git a/ash/common/system/tray/tray_event_filter.cc b/ash/common/system/tray/tray_event_filter.cc
index 4e6097dc28a70e5e96fb9bb5f1c187a63c9b4255..668d53856175587eb4215546e3d16b31520db473 100644
--- a/ash/common/system/tray/tray_event_filter.cc
+++ b/ash/common/system/tray/tray_event_filter.cc
@@ -7,7 +7,6 @@
#include "ash/common/system/tray/tray_background_view.h"
#include "ash/common/system/tray/tray_bubble_wrapper.h"
#include "ash/common/wm/container_finder.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"
@@ -47,7 +46,7 @@ void TrayEventFilter::OnPointerEventObserved(
void TrayEventFilter::ProcessPressedEvent(const gfx::Point& location_in_screen,
views::Widget* target) {
if (target) {
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(target);
+ WmWindow* window = WmWindow::Get(target->GetNativeWindow());
int container_id = wm::GetContainerForWindow(window)->GetShellWindowId();
// Don't process events that occurred inside an embedded menu, for example
// the right-click menu in a popup notification.
« no previous file with comments | « ash/common/system/tray/tray_bubble_wrapper.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698