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

Side by Side Diff: ash/wm/toplevel_window_event_handler.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/toplevel_window_event_handler.h" 5 #include "ash/wm/toplevel_window_event_handler.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/window_state.h" 8 #include "ash/wm/window_state.h"
9 #include "ash/wm/window_state_aura.h" 9 #include "ash/wm/window_state_aura.h"
10 #include "ash/wm_window.h" 10 #include "ash/wm_window.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "ui/aura/client/cursor_client.h" 13 #include "ui/aura/client/cursor_client.h"
14 #include "ui/aura/env.h" 14 #include "ui/aura/env.h"
15 #include "ui/aura/window.h" 15 #include "ui/aura/window.h"
16 #include "ui/aura/window_event_dispatcher.h" 16 #include "ui/aura/window_event_dispatcher.h"
17 #include "ui/aura/window_tracker.h" 17 #include "ui/aura/window_tracker.h"
18 #include "ui/aura/window_tree_host.h" 18 #include "ui/aura/window_tree_host.h"
19 #include "ui/base/cursor/cursor.h" 19 #include "ui/base/cursor/cursor.h"
20 #include "ui/base/hit_test.h" 20 #include "ui/base/hit_test.h"
21 #include "ui/events/event.h" 21 #include "ui/events/event.h"
22 #include "ui/events/event_utils.h" 22 #include "ui/events/event_utils.h"
23 #include "ui/events/gestures/gesture_recognizer.h" 23 #include "ui/events/gestures/gesture_recognizer.h"
24 24
25 namespace ash { 25 namespace ash {
26 26
27 ToplevelWindowEventHandler::ToplevelWindowEventHandler(WmShell* shell) 27 ToplevelWindowEventHandler::ToplevelWindowEventHandler()
28 : wm_toplevel_window_event_handler_(shell), weak_factory_(this) {} 28 : weak_factory_(this) {}
29 29
30 ToplevelWindowEventHandler::~ToplevelWindowEventHandler() {} 30 ToplevelWindowEventHandler::~ToplevelWindowEventHandler() {}
31 31
32 void ToplevelWindowEventHandler::OnKeyEvent(ui::KeyEvent* event) { 32 void ToplevelWindowEventHandler::OnKeyEvent(ui::KeyEvent* event) {
33 wm_toplevel_window_event_handler_.OnKeyEvent(event); 33 wm_toplevel_window_event_handler_.OnKeyEvent(event);
34 } 34 }
35 35
36 void ToplevelWindowEventHandler::OnMouseEvent(ui::MouseEvent* event) { 36 void ToplevelWindowEventHandler::OnMouseEvent(ui::MouseEvent* event) {
37 aura::Window* target = static_cast<aura::Window*>(event->target()); 37 aura::Window* target = static_cast<aura::Window*>(event->target());
38 wm_toplevel_window_event_handler_.OnMouseEvent(event, WmWindow::Get(target)); 38 wm_toplevel_window_event_handler_.OnMouseEvent(event, WmWindow::Get(target));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 void ToplevelWindowEventHandler::OnDragCompleted( 119 void ToplevelWindowEventHandler::OnDragCompleted(
120 wm::WmToplevelWindowEventHandler::DragResult* result_return_value, 120 wm::WmToplevelWindowEventHandler::DragResult* result_return_value,
121 base::RunLoop* run_loop, 121 base::RunLoop* run_loop,
122 wm::WmToplevelWindowEventHandler::DragResult result) { 122 wm::WmToplevelWindowEventHandler::DragResult result) {
123 *result_return_value = result; 123 *result_return_value = result;
124 run_loop->Quit(); 124 run_loop->Quit();
125 } 125 }
126 126
127 } // namespace ash 127 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698