OLD | NEW |
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/window_tree_host_impl.h" | 5 #include "components/mus/ws/window_tree_host_impl.h" |
6 | 6 |
7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "components/mus/common/types.h" | 9 #include "components/mus/common/types.h" |
10 #include "components/mus/public/interfaces/input_event_constants.mojom.h" | 10 #include "components/mus/public/interfaces/input_event_constants.mojom.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 void WindowTreeHostImpl::DispatchInputEventToWindow(ServerWindow* target, | 477 void WindowTreeHostImpl::DispatchInputEventToWindow(ServerWindow* target, |
478 bool in_nonclient_area, | 478 bool in_nonclient_area, |
479 mojom::EventPtr event) { | 479 mojom::EventPtr event) { |
480 if (event_ack_timer_.IsRunning()) { | 480 if (event_ack_timer_.IsRunning()) { |
481 scoped_ptr<ProcessedEventTarget> processed_event_target( | 481 scoped_ptr<ProcessedEventTarget> processed_event_target( |
482 new ProcessedEventTarget(target, in_nonclient_area)); | 482 new ProcessedEventTarget(target, in_nonclient_area)); |
483 QueueEvent(std::move(event), std::move(processed_event_target)); | 483 QueueEvent(std::move(event), std::move(processed_event_target)); |
484 return; | 484 return; |
485 } | 485 } |
486 | 486 |
| 487 if (event->action == mojom::EventType::POINTER_DOWN) { |
| 488 LOG(ERROR) << "**** " << root_window()->GetDebugWindowHierarchy() |
| 489 << " == " << target->id().connection_id << "," |
| 490 << target->id().window_id; |
| 491 } |
487 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); | 492 DispatchInputEventToWindowImpl(target, in_nonclient_area, std::move(event)); |
488 } | 493 } |
489 | 494 |
490 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { | 495 void WindowTreeHostImpl::OnWindowDestroyed(ServerWindow* window) { |
491 windows_needing_frame_destruction_.erase(window); | 496 windows_needing_frame_destruction_.erase(window); |
492 window->RemoveObserver(this); | 497 window->RemoveObserver(this); |
493 } | 498 } |
494 | 499 |
495 } // namespace ws | 500 } // namespace ws |
496 } // namespace mus | 501 } // namespace mus |
OLD | NEW |