Chromium Code Reviews| Index: ash/wm/workspace/workspace_event_handler.cc |
| diff --git a/ash/wm/workspace/workspace_event_handler.cc b/ash/wm/workspace/workspace_event_handler.cc |
| index 433ee9a0bcb98ef1ccb2ee57caae7b272ef90452..9cc2362654bb8cad4b0565ed952d4a28ba239fa1 100644 |
| --- a/ash/wm/workspace/workspace_event_handler.cc |
| +++ b/ash/wm/workspace/workspace_event_handler.cc |
| @@ -8,6 +8,8 @@ |
| #include "ash/wm/window_state.h" |
| #include "ash/wm/wm_event.h" |
| #include "ash/wm_window.h" |
| +#include "ui/aura/window.h" |
| +#include "ui/aura/window_delegate.h" |
| #include "ui/base/hit_test.h" |
| #include "ui/events/event.h" |
| @@ -97,9 +99,12 @@ void WorkspaceEventHandler::OnGestureEvent(ui::GestureEvent* event, |
| void WorkspaceEventHandler::HandleVerticalResizeDoubleClick( |
| wm::WindowState* target_state, |
| ui::MouseEvent* event) { |
| - WmWindow* target = target_state->window(); |
| + aura::Window* target = target_state->window(); |
| if (event->flags() & ui::EF_IS_DOUBLE_CLICK) { |
| - int component = target->GetNonClientComponent(event->location()); |
| + int component = |
| + target->delegate() |
|
msw
2017/05/23 05:46:55
optional nit: since this block is contingent on a
sky
2017/05/23 17:14:38
Done.
|
| + ? target->delegate()->GetNonClientComponent(event->location()) |
| + : HTNOWHERE; |
| if (component == HTBOTTOM || component == HTTOP) { |
| ShellPort::Get()->RecordUserMetricsAction( |
| UMA_TOGGLE_SINGLE_AXIS_MAXIMIZE_BORDER_CLICK); |