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 "services/ui/public/cpp/window_tree_client.h" | 5 #include "services/ui/public/cpp/window_tree_client.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> |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 void WindowTreeClient::WmClientJankinessChanged(ClientSpecificId client_id, | 1113 void WindowTreeClient::WmClientJankinessChanged(ClientSpecificId client_id, |
1114 bool janky) { | 1114 bool janky) { |
1115 if (window_manager_delegate_) { | 1115 if (window_manager_delegate_) { |
1116 auto it = embedded_windows_.find(client_id); | 1116 auto it = embedded_windows_.find(client_id); |
1117 CHECK(it != embedded_windows_.end()); | 1117 CHECK(it != embedded_windows_.end()); |
1118 window_manager_delegate_->OnWmClientJankinessChanged( | 1118 window_manager_delegate_->OnWmClientJankinessChanged( |
1119 embedded_windows_[client_id], janky); | 1119 embedded_windows_[client_id], janky); |
1120 } | 1120 } |
1121 } | 1121 } |
1122 | 1122 |
1123 void WindowTreeClient::OnAccelerator(uint32_t id, | 1123 void WindowTreeClient::OnAccelerator(uint32_t ack_id, |
| 1124 uint32_t accelerator_id, |
1124 std::unique_ptr<ui::Event> event) { | 1125 std::unique_ptr<ui::Event> event) { |
1125 DCHECK(event); | 1126 DCHECK(event); |
1126 window_manager_delegate_->OnAccelerator(id, *event.get()); | 1127 const mojom::EventResult result = |
| 1128 window_manager_delegate_->OnAccelerator(accelerator_id, *event.get()); |
| 1129 if (ack_id && window_manager_internal_client_) |
| 1130 window_manager_internal_client_->OnAcceleratorAck(ack_id, result); |
1127 } | 1131 } |
1128 | 1132 |
1129 void WindowTreeClient::SetFrameDecorationValues( | 1133 void WindowTreeClient::SetFrameDecorationValues( |
1130 mojom::FrameDecorationValuesPtr values) { | 1134 mojom::FrameDecorationValuesPtr values) { |
1131 if (window_manager_internal_client_) { | 1135 if (window_manager_internal_client_) { |
1132 window_manager_internal_client_->WmSetFrameDecorationValues( | 1136 window_manager_internal_client_->WmSetFrameDecorationValues( |
1133 std::move(values)); | 1137 std::move(values)); |
1134 } | 1138 } |
1135 } | 1139 } |
1136 | 1140 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 Window* window, | 1179 Window* window, |
1176 const gfx::Vector2d& offset, | 1180 const gfx::Vector2d& offset, |
1177 const gfx::Insets& hit_area) { | 1181 const gfx::Insets& hit_area) { |
1178 if (window_manager_internal_client_) { | 1182 if (window_manager_internal_client_) { |
1179 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1183 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
1180 server_id(window), offset.x(), offset.y(), hit_area); | 1184 server_id(window), offset.x(), offset.y(), hit_area); |
1181 } | 1185 } |
1182 } | 1186 } |
1183 | 1187 |
1184 } // namespace ui | 1188 } // namespace ui |
OLD | NEW |