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

Side by Side Diff: components/mus/ws/event_dispatcher.cc

Issue 2014003002: mojo/converters/input_events -> ui/events/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@converters
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/event_matcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/mus/ws/event_dispatcher.h" 5 #include "components/mus/ws/event_dispatcher.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "components/mus/ws/accelerator.h" 10 #include "components/mus/ws/accelerator.h"
11 #include "components/mus/ws/display.h" 11 #include "components/mus/ws/display.h"
12 #include "components/mus/ws/event_dispatcher_delegate.h" 12 #include "components/mus/ws/event_dispatcher_delegate.h"
13 #include "components/mus/ws/server_window.h" 13 #include "components/mus/ws/server_window.h"
14 #include "components/mus/ws/server_window_delegate.h" 14 #include "components/mus/ws/server_window_delegate.h"
15 #include "components/mus/ws/window_coordinate_conversions.h" 15 #include "components/mus/ws/window_coordinate_conversions.h"
16 #include "components/mus/ws/window_finder.h" 16 #include "components/mus/ws/window_finder.h"
17 #include "mojo/converters/input_events/input_events_type_converters.h"
18 #include "ui/events/event_utils.h" 17 #include "ui/events/event_utils.h"
18 #include "ui/events/mojo/input_events_type_converters.h"
19 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" 19 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
20 #include "ui/gfx/geometry/point.h" 20 #include "ui/gfx/geometry/point.h"
21 #include "ui/gfx/geometry/point_conversions.h" 21 #include "ui/gfx/geometry/point_conversions.h"
22 22
23 namespace mus { 23 namespace mus {
24 namespace ws { 24 namespace ws {
25 namespace { 25 namespace {
26 26
27 bool IsOnlyOneMouseButtonDown(int flags) { 27 bool IsOnlyOneMouseButtonDown(int flags) {
28 const uint32_t button_only_flags = 28 const uint32_t button_only_flags =
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 void EventDispatcher::OnWindowDestroyed(ServerWindow* window) { 531 void EventDispatcher::OnWindowDestroyed(ServerWindow* window) {
532 CancelPointerEventsToTarget(window); 532 CancelPointerEventsToTarget(window);
533 533
534 if (mouse_cursor_source_window_ == window) 534 if (mouse_cursor_source_window_ == window)
535 mouse_cursor_source_window_ = nullptr; 535 mouse_cursor_source_window_ = nullptr;
536 } 536 }
537 537
538 } // namespace ws 538 } // namespace ws
539 } // namespace mus 539 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/event_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698