Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ws/window_manager_state.h" | 5 #include "services/ui/ws/window_manager_state.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "services/service_manager/public/interfaces/connector.mojom.h" | 10 #include "services/service_manager/public/interfaces/connector.mojom.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 480 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) | 480 #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) |
| 481 // Error so it will be collected in system logs. | 481 // Error so it will be collected in system logs. |
| 482 for (Display* display : display_manager()->displays()) { | 482 for (Display* display : display_manager()->displays()) { |
| 483 WindowManagerDisplayRoot* display_root = | 483 WindowManagerDisplayRoot* display_root = |
| 484 display->GetWindowManagerDisplayRootForUser(user_id()); | 484 display->GetWindowManagerDisplayRootForUser(user_id()); |
| 485 if (display_root) { | 485 if (display_root) { |
| 486 LOG(ERROR) << "ServerWindow hierarchy:\n" | 486 LOG(ERROR) << "ServerWindow hierarchy:\n" |
| 487 << display_root->root()->GetDebugWindowHierarchy(); | 487 << display_root->root()->GetDebugWindowHierarchy(); |
| 488 } | 488 } |
| 489 } | 489 } |
| 490 ServerWindow* focused_window = GetFocusedWindowForEventDispatcher(); | |
| 491 LOG(ERROR) << "focus=" | |
|
msw
2017/02/15 01:37:29
optional nit: "Focused window: "? (to match format
sky
2017/02/15 03:58:24
Done.
| |
| 492 << (focused_window ? focused_window->id().ToString() : "(null)"); | |
| 490 #endif | 493 #endif |
| 491 } | 494 } |
| 492 | 495 |
| 493 void WindowManagerState::ScheduleInputEventTimeout(WindowTree* tree, | 496 void WindowManagerState::ScheduleInputEventTimeout(WindowTree* tree, |
| 494 ServerWindow* target, | 497 ServerWindow* target, |
| 495 const Event& event, | 498 const Event& event, |
| 496 EventDispatchPhase phase) { | 499 EventDispatchPhase phase) { |
| 497 std::unique_ptr<InFlightEventDetails> details = | 500 std::unique_ptr<InFlightEventDetails> details = |
| 498 base::MakeUnique<InFlightEventDetails>(tree, event_processing_display_id_, | 501 base::MakeUnique<InFlightEventDetails>(tree, event_processing_display_id_, |
| 499 event, phase); | 502 event, phase); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 665 window->RemoveObserver(this); | 668 window->RemoveObserver(this); |
| 666 orphaned_window_manager_display_roots_.erase(iter); | 669 orphaned_window_manager_display_roots_.erase(iter); |
| 667 return; | 670 return; |
| 668 } | 671 } |
| 669 } | 672 } |
| 670 NOTREACHED(); | 673 NOTREACHED(); |
| 671 } | 674 } |
| 672 | 675 |
| 673 } // namespace ws | 676 } // namespace ws |
| 674 } // namespace ui | 677 } // namespace ui |
| OLD | NEW |