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

Side by Side Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: Add context, comment 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
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 "ui/views/mus/desktop_window_tree_host_mus.h" 5 #include "ui/views/mus/desktop_window_tree_host_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 bool DesktopWindowTreeHostMus::ShouldUpdateWindowTransparency() const { 660 bool DesktopWindowTreeHostMus::ShouldUpdateWindowTransparency() const {
661 // Needed so the window manager can render the client decorations. 661 // Needed so the window manager can render the client decorations.
662 return false; 662 return false;
663 } 663 }
664 664
665 bool DesktopWindowTreeHostMus::ShouldUseDesktopNativeCursorManager() const { 665 bool DesktopWindowTreeHostMus::ShouldUseDesktopNativeCursorManager() const {
666 // We manage the cursor ourself. 666 // We manage the cursor ourself.
667 return false; 667 return false;
668 } 668 }
669 669
670 std::vector<DesktopWindowTreeHost*>
671 DesktopWindowTreeHostMus::GetOwnedTopLevelHosts() const {
672 return std::vector<DesktopWindowTreeHost*>(children_.begin(),
673 children_.end());
674 }
675
670 void DesktopWindowTreeHostMus::OnWindowManagerFrameValuesChanged() { 676 void DesktopWindowTreeHostMus::OnWindowManagerFrameValuesChanged() {
671 NonClientView* non_client_view = 677 NonClientView* non_client_view =
672 native_widget_delegate_->AsWidget()->non_client_view(); 678 native_widget_delegate_->AsWidget()->non_client_view();
673 if (non_client_view) { 679 if (non_client_view) {
674 non_client_view->Layout(); 680 non_client_view->Layout();
675 non_client_view->SchedulePaint(); 681 non_client_view->SchedulePaint();
676 } 682 }
677 683
678 SendClientAreaToServer(); 684 SendClientAreaToServer();
679 SendHitTestMaskToServer(); 685 SendHitTestMaskToServer();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 aura::client::FocusClient* focus_client, 736 aura::client::FocusClient* focus_client,
731 aura::Window* window) { 737 aura::Window* window) {
732 if (window == this->window()) { 738 if (window == this->window()) {
733 desktop_native_widget_aura_->HandleActivationChanged(true); 739 desktop_native_widget_aura_->HandleActivationChanged(true);
734 } else if (is_active_) { 740 } else if (is_active_) {
735 desktop_native_widget_aura_->HandleActivationChanged(false); 741 desktop_native_widget_aura_->HandleActivationChanged(false);
736 } 742 }
737 } 743 }
738 744
739 } // namespace views 745 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.h ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698