OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/wm/workspace/workspace_event_handler_aura.h" |
| 6 |
| 7 #include "ash/aura/wm_window_aura.h" |
| 8 #include "ui/aura/window.h" |
| 9 #include "ui/events/event.h" |
| 10 |
| 11 namespace ash { |
| 12 |
| 13 WorkspaceEventHandlerAura::WorkspaceEventHandlerAura(WmWindow* workspace_window) |
| 14 : workspace_window_(workspace_window) { |
| 15 workspace_window_->AddLimitedPreTargetHandler(this); |
| 16 } |
| 17 |
| 18 WorkspaceEventHandlerAura::~WorkspaceEventHandlerAura() { |
| 19 workspace_window_->RemoveLimitedPreTargetHandler(this); |
| 20 } |
| 21 |
| 22 void WorkspaceEventHandlerAura::OnMouseEvent(ui::MouseEvent* event) { |
| 23 WorkspaceEventHandler::OnMouseEvent( |
| 24 event, WmWindowAura::Get(static_cast<aura::Window*>(event->target()))); |
| 25 } |
| 26 |
| 27 void WorkspaceEventHandlerAura::OnGestureEvent(ui::GestureEvent* event) { |
| 28 WorkspaceEventHandler::OnGestureEvent( |
| 29 event, WmWindowAura::Get(static_cast<aura::Window*>(event->target()))); |
| 30 } |
| 31 |
| 32 } // namespace ash |
OLD | NEW |