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

Side by Side Diff: ash/wm/workspace/workspace_event_handler_aura.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/workspace/workspace_event_handler_aura.h" 5 #include "ash/wm/workspace/workspace_event_handler_aura.h"
6 6
7 #include "ash/common/wm_window.h" 7 #include "ash/wm_window.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 WorkspaceEventHandlerAura::WorkspaceEventHandlerAura(WmWindow* workspace_window) 13 WorkspaceEventHandlerAura::WorkspaceEventHandlerAura(WmWindow* workspace_window)
14 : workspace_window_(workspace_window) { 14 : workspace_window_(workspace_window) {
15 workspace_window_->AddLimitedPreTargetHandler(this); 15 workspace_window_->AddLimitedPreTargetHandler(this);
16 } 16 }
17 17
18 WorkspaceEventHandlerAura::~WorkspaceEventHandlerAura() { 18 WorkspaceEventHandlerAura::~WorkspaceEventHandlerAura() {
19 workspace_window_->RemoveLimitedPreTargetHandler(this); 19 workspace_window_->RemoveLimitedPreTargetHandler(this);
20 } 20 }
21 21
22 void WorkspaceEventHandlerAura::OnMouseEvent(ui::MouseEvent* event) { 22 void WorkspaceEventHandlerAura::OnMouseEvent(ui::MouseEvent* event) {
23 WorkspaceEventHandler::OnMouseEvent( 23 WorkspaceEventHandler::OnMouseEvent(
24 event, WmWindow::Get(static_cast<aura::Window*>(event->target()))); 24 event, WmWindow::Get(static_cast<aura::Window*>(event->target())));
25 } 25 }
26 26
27 void WorkspaceEventHandlerAura::OnGestureEvent(ui::GestureEvent* event) { 27 void WorkspaceEventHandlerAura::OnGestureEvent(ui::GestureEvent* event) {
28 WorkspaceEventHandler::OnGestureEvent( 28 WorkspaceEventHandler::OnGestureEvent(
29 event, WmWindow::Get(static_cast<aura::Window*>(event->target()))); 29 event, WmWindow::Get(static_cast<aura::Window*>(event->target())));
30 } 30 }
31 31
32 } // namespace ash 32 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler_aura.h ('k') | ash/wm/workspace/workspace_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698