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

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

Issue 2387013003: Adds OnChildWindowVisibilityChanged to ui::WindowObserver (Closed)
Patch Set: merge Created 4 years, 2 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/workspace/workspace_layout_manager_unittest.cc » ('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/shelf/shelf_item_types.h" 7 #include "ash/common/shelf/shelf_item_types.h"
8 #include "ash/common/wm/container_finder.h" 8 #include "ash/common/wm/container_finder.h"
9 #include "ash/common/wm/window_positioning_utils.h" 9 #include "ash/common/wm/window_positioning_utils.h"
10 #include "ash/common/wm/window_state.h" 10 #include "ash/common/wm/window_state.h"
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 } 955 }
956 956
957 void WmWindowMus::OnWindowDestroying(ui::Window* window) { 957 void WmWindowMus::OnWindowDestroying(ui::Window* window) {
958 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this)); 958 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this));
959 } 959 }
960 960
961 void WmWindowMus::OnWindowDestroyed(ui::Window* window) { 961 void WmWindowMus::OnWindowDestroyed(ui::Window* window) {
962 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this)); 962 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this));
963 } 963 }
964 964
965 void WmWindowMus::OnWindowVisibilityChanging(ui::Window* window) { 965 void WmWindowMus::OnWindowVisibilityChanging(ui::Window* window, bool visible) {
966 DCHECK_EQ(window_, window); 966 DCHECK_EQ(window_, window);
967 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 967 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
968 OnWindowVisibilityChanging(this, !window->visible())); 968 OnWindowVisibilityChanging(this, visible));
969 } 969 }
970 970
971 void WmWindowMus::OnWindowVisibilityChanged(ui::Window* window) { 971 void WmWindowMus::OnWindowVisibilityChanged(ui::Window* window, bool visible) {
972 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 972 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
973 OnWindowVisibilityChanged(Get(window), window->visible())); 973 OnWindowVisibilityChanged(Get(window), visible));
974 } 974 }
975 975
976 void WmWindowMus::OnTransientChildAdded(ui::Window* window, 976 void WmWindowMus::OnTransientChildAdded(ui::Window* window,
977 ui::Window* transient) { 977 ui::Window* transient) {
978 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, 978 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_,
979 OnTransientChildAdded(this, Get(transient))); 979 OnTransientChildAdded(this, Get(transient)));
980 } 980 }
981 981
982 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, 982 void WmWindowMus::OnTransientChildRemoved(ui::Window* window,
983 ui::Window* transient) { 983 ui::Window* transient) {
984 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, 984 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_,
985 OnTransientChildRemoved(this, Get(transient))); 985 OnTransientChildRemoved(this, Get(transient)));
986 } 986 }
987 987
988 } // namespace mus 988 } // namespace mus
989 } // namespace ash 989 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698