OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/public/cpp/lib/window_tree_client_impl.h" | 5 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "components/mus/common/util.h" | 15 #include "components/mus/common/util.h" |
16 #include "components/mus/public/cpp/input_event_handler.h" | 16 #include "components/mus/public/cpp/input_event_handler.h" |
17 #include "components/mus/public/cpp/lib/in_flight_change.h" | 17 #include "components/mus/public/cpp/lib/in_flight_change.h" |
18 #include "components/mus/public/cpp/lib/window_private.h" | 18 #include "components/mus/public/cpp/lib/window_private.h" |
19 #include "components/mus/public/cpp/window_manager_delegate.h" | 19 #include "components/mus/public/cpp/window_manager_delegate.h" |
20 #include "components/mus/public/cpp/window_observer.h" | 20 #include "components/mus/public/cpp/window_observer.h" |
21 #include "components/mus/public/cpp/window_tracker.h" | 21 #include "components/mus/public/cpp/window_tracker.h" |
22 #include "components/mus/public/cpp/window_tree_connection.h" | 22 #include "components/mus/public/cpp/window_tree_connection.h" |
23 #include "components/mus/public/cpp/window_tree_connection_observer.h" | 23 #include "components/mus/public/cpp/window_tree_connection_observer.h" |
24 #include "components/mus/public/cpp/window_tree_delegate.h" | 24 #include "components/mus/public/cpp/window_tree_delegate.h" |
25 #include "mojo/converters/geometry/geometry_type_converters.h" | |
26 #include "mojo/converters/input_events/input_events_type_converters.h" | 25 #include "mojo/converters/input_events/input_events_type_converters.h" |
27 #include "services/shell/public/cpp/connector.h" | 26 #include "services/shell/public/cpp/connector.h" |
28 #include "ui/events/event.h" | 27 #include "ui/events/event.h" |
29 #include "ui/gfx/geometry/insets.h" | 28 #include "ui/gfx/geometry/insets.h" |
| 29 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
30 #include "ui/gfx/geometry/size.h" | 30 #include "ui/gfx/geometry/size.h" |
31 | 31 |
32 namespace mus { | 32 namespace mus { |
33 | 33 |
34 Id MakeTransportId(ConnectionSpecificId connection_id, | 34 Id MakeTransportId(ConnectionSpecificId connection_id, |
35 ConnectionSpecificId local_id) { | 35 ConnectionSpecificId local_id) { |
36 return (connection_id << 16) | local_id; | 36 return (connection_id << 16) | local_id; |
37 } | 37 } |
38 | 38 |
39 Id server_id(Window* window) { | 39 Id server_id(Window* window) { |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 const gfx::Vector2d& offset, | 1159 const gfx::Vector2d& offset, |
1160 const gfx::Insets& hit_area) { | 1160 const gfx::Insets& hit_area) { |
1161 if (window_manager_internal_client_) { | 1161 if (window_manager_internal_client_) { |
1162 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1162 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
1163 server_id(window), offset.x(), offset.y(), | 1163 server_id(window), offset.x(), offset.y(), |
1164 mojo::Insets::From(hit_area)); | 1164 mojo::Insets::From(hit_area)); |
1165 } | 1165 } |
1166 } | 1166 } |
1167 | 1167 |
1168 } // namespace mus | 1168 } // namespace mus |
OLD | NEW |