Chromium Code Reviews| Index: services/ui/ws/window_tree.cc |
| diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc |
| index 2e2f73bfdd471cbb3a3beebc78c98f00caf11dfb..0f739342ea4f82f226af7a8cb575340933bb7ead 100644 |
| --- a/services/ui/ws/window_tree.cc |
| +++ b/services/ui/ws/window_tree.cc |
| @@ -35,6 +35,8 @@ |
| using mojo::InterfaceRequest; |
| +using EventProperties = std::unordered_map<std::string, std::vector<uint8_t>>; |
| + |
| namespace ui { |
| namespace ws { |
| @@ -555,6 +557,7 @@ void WindowTree::OnChangeCompleted(uint32_t change_id, bool success) { |
| void WindowTree::OnAccelerator(uint32_t accelerator_id, |
| const ui::Event& event, |
| bool needs_ack) { |
| + DVLOG(3) << "dispatching accelerator, client=" << id_; |
|
Elliot Glaysher
2017/03/21 23:39:28
Consistent style on these DVLOGs? Preferably using
sky
2017/03/22 00:01:03
Done.
|
| DCHECK(window_manager_internal_); |
| if (needs_ack) |
| GenerateEventAckId(); |
| @@ -1177,6 +1180,7 @@ uint32_t WindowTree::GenerateEventAckId() { |
| void WindowTree::DispatchInputEventImpl(ServerWindow* target, |
| const ui::Event& event) { |
| + DVLOG(3) << "dispatching event, client=" << id_; |
| GenerateEventAckId(); |
| WindowManagerDisplayRoot* display_root = GetWindowManagerDisplayRoot(target); |
| DCHECK(display_root); |
| @@ -1500,6 +1504,7 @@ void WindowTree::SetImeVisibility(Id transport_window_id, |
| void WindowTree::OnWindowInputEventAck(uint32_t event_id, |
| mojom::EventResult result) { |
| + DVLOG(3) << "OnWindowInputEventAck client=" << id_; |
|
Elliot Glaysher
2017/03/21 23:39:28
"ck[,] client"
Add comma to match output in next
sky
2017/03/22 00:01:03
I removed the comma from all of them, seemed super
|
| if (event_ack_id_ == 0 || event_id != event_ack_id_) { |
| // TODO(sad): Something bad happened. Kill the client? |
| NOTIMPLEMENTED() << ": Wrong event acked. event_id=" << event_id |
| @@ -2073,7 +2078,9 @@ void WindowTree::OnWmCreatedTopLevelWindow(uint32_t change_id, |
| } |
| void WindowTree::OnAcceleratorAck(uint32_t event_id, |
| - mojom::EventResult result) { |
| + mojom::EventResult result, |
| + const EventProperties& properties) { |
| + DVLOG(3) << "OnAcceleratorAck, client=" << id_; |
| if (event_ack_id_ == 0 || event_id != event_ack_id_) { |
| DVLOG(1) << "OnAcceleratorAck supplied invalid event_id"; |
| window_server_->WindowManagerSentBogusMessage(); |
| @@ -2081,7 +2088,7 @@ void WindowTree::OnAcceleratorAck(uint32_t event_id, |
| } |
| event_ack_id_ = 0; |
| DCHECK(window_manager_state_); |
| - window_manager_state_->OnAcceleratorAck(result); |
| + window_manager_state_->OnAcceleratorAck(result, properties); |
| } |
| bool WindowTree::HasRootForAccessPolicy(const ServerWindow* window) const { |