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

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

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: cleanup Created 3 years, 8 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/system/tray/tray_event_filter.cc
diff --git a/ash/system/tray/tray_event_filter.cc b/ash/system/tray/tray_event_filter.cc
index f6d98c214c5a6ec6dc230ec0d33ec0a689a555f9..df42c1b41b9326d61a88278935298daabaf859e5 100644
--- a/ash/system/tray/tray_event_filter.cc
+++ b/ash/system/tray/tray_event_filter.cc
@@ -10,6 +10,7 @@
#include "ash/system/tray/tray_bubble_wrapper.h"
#include "ash/wm/container_finder.h"
#include "ash/wm_window.h"
+#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
namespace ash {
@@ -47,7 +48,7 @@ void TrayEventFilter::ProcessPressedEvent(const gfx::Point& location_in_screen,
views::Widget* target) {
if (target) {
WmWindow* window = WmWindow::Get(target->GetNativeWindow());
- int container_id = wm::GetContainerForWindow(window)->GetShellWindowId();
+ int container_id = wm::GetContainerForWindow(window)->aura_window()->id();
// Don't process events that occurred inside an embedded menu, for example
// the right-click menu in a popup notification.
if (container_id == kShellWindowId_MenuContainer)

Powered by Google App Engine
This is Rietveld 408576698