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

Unified Diff: ash/system/status_area_widget_delegate.cc

Issue 2895843002: chromeos: Eliminate WmWindow from //ash/system (Closed)
Patch Set: comments 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/system/status_area_widget.cc ('k') | ash/system/toast/toast_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_widget_delegate.cc
diff --git a/ash/system/status_area_widget_delegate.cc b/ash/system/status_area_widget_delegate.cc
index 603f64d3f5aeabc8bf7b13d46db719ef00dab051..85074867c62d7152beb6e99ec7e2c0159d0f36e8 100644
--- a/ash/system/status_area_widget_delegate.cc
+++ b/ash/system/status_area_widget_delegate.cc
@@ -104,8 +104,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 = WmWindow::Get(target_widget->GetNativeWindow());
- WmShelf* shelf = target_window->GetRootWindowController()->GetShelf();
+ WmShelf* shelf = WmShelf::ForWindow(target_widget->GetNativeWindow());
if (shelf->ProcessGestureEvent(*event))
event->StopPropagation();
else
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/toast/toast_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698