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

Side by Side Diff: mash/simple_wm/move_event_handler.cc

Issue 2786983003: [aura-mus] Add ui::CursorData, with mojo serialization. (Closed)
Patch Set: everybody comments 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 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 "mash/simple_wm/move_event_handler.h" 5 #include "mash/simple_wm/move_event_handler.h"
6 6
7 #include "mash/simple_wm/move_loop.h" 7 #include "mash/simple_wm/move_loop.h"
8 #include "services/ui/public/interfaces/cursor.mojom.h" 8 #include "services/ui/public/interfaces/cursor/cursor.mojom.h"
9 #include "ui/aura/mus/window_port_mus.h" 9 #include "ui/aura/mus/window_port_mus.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/aura/window_delegate.h" 11 #include "ui/aura/window_delegate.h"
12 #include "ui/base/hit_test.h" 12 #include "ui/base/hit_test.h"
13 #include "ui/events/event.h" 13 #include "ui/events/event.h"
14 14
15 namespace simple_wm { 15 namespace simple_wm {
16 namespace { 16 namespace {
17 17
18 ui::mojom::CursorType CursorForWindowComponent(int window_component) { 18 ui::mojom::CursorType CursorForWindowComponent(int window_component) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 move_loop_.reset(); 112 move_loop_.reset();
113 event->SetHandled(); 113 event->SetHandled();
114 } 114 }
115 115
116 void MoveEventHandler::OnWindowDestroying(aura::Window* window) { 116 void MoveEventHandler::OnWindowDestroying(aura::Window* window) {
117 DCHECK_EQ(window_, window); 117 DCHECK_EQ(window_, window);
118 Detach(); 118 Detach();
119 } 119 }
120 120
121 } // namespace simple_wm 121 } // namespace simple_wm
OLDNEW
« no previous file with comments | « ash/mus/move_event_handler.cc ('k') | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698