Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: services/ui/ws/window_manager_state.cc

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: defaults test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | ui/aura/mus/property_converter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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) << "Focused window: "
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
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
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | ui/aura/mus/property_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698