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

Side by Side Diff: ash/mus/bridge/wm_window_mus.cc

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome Created 4 years, 5 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 | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/root_window_controller.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 "ash/mus/bridge/wm_window_mus.h" 5 #include "ash/mus/bridge/wm_window_mus.h"
6 6
7 #include "ash/common/wm/container_finder.h" 7 #include "ash/common/wm/container_finder.h"
8 #include "ash/common/wm/window_state.h" 8 #include "ash/common/wm/window_state.h"
9 #include "ash/common/wm_layout_manager.h" 9 #include "ash/common/wm_layout_manager.h"
10 #include "ash/common/wm_window_observer.h" 10 #include "ash/common/wm_window_observer.h"
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 } 708 }
709 709
710 void WmWindowMus::AddObserver(WmWindowObserver* observer) { 710 void WmWindowMus::AddObserver(WmWindowObserver* observer) {
711 observers_.AddObserver(observer); 711 observers_.AddObserver(observer);
712 } 712 }
713 713
714 void WmWindowMus::RemoveObserver(WmWindowObserver* observer) { 714 void WmWindowMus::RemoveObserver(WmWindowObserver* observer) {
715 observers_.RemoveObserver(observer); 715 observers_.RemoveObserver(observer);
716 } 716 }
717 717
718 bool WmWindowMus::HasObserver(const WmWindowObserver* observer) const {
719 return observers_.HasObserver(observer);
720 }
721
718 void WmWindowMus::OnTreeChanging(const TreeChangeParams& params) { 722 void WmWindowMus::OnTreeChanging(const TreeChangeParams& params) {
719 WmWindowObserver::TreeChangeParams wm_params; 723 WmWindowObserver::TreeChangeParams wm_params;
720 wm_params.target = Get(params.target); 724 wm_params.target = Get(params.target);
721 wm_params.new_parent = Get(params.new_parent); 725 wm_params.new_parent = Get(params.new_parent);
722 wm_params.old_parent = Get(params.old_parent); 726 wm_params.old_parent = Get(params.old_parent);
723 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 727 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
724 OnWindowTreeChanging(this, wm_params)); 728 OnWindowTreeChanging(this, wm_params));
725 } 729 }
726 730
727 void WmWindowMus::OnTreeChanged(const TreeChangeParams& params) { 731 void WmWindowMus::OnTreeChanged(const TreeChangeParams& params) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 void WmWindowMus::OnWindowDestroying(::mus::Window* window) { 774 void WmWindowMus::OnWindowDestroying(::mus::Window* window) {
771 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this)); 775 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this));
772 } 776 }
773 777
774 void WmWindowMus::OnWindowDestroyed(::mus::Window* window) { 778 void WmWindowMus::OnWindowDestroyed(::mus::Window* window) {
775 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this)); 779 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this));
776 } 780 }
777 781
778 } // namespace mus 782 } // namespace mus
779 } // namespace ash 783 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698