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

Side by Side Diff: ash/aura/wm_root_window_controller_aura.cc

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WmRootWindowControllerObserver::OnFullscreenStateChanged; use ShellObserver. Created 4 years, 4 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/aura/wm_root_window_controller_aura.h ('k') | ash/aura/wm_shelf_aura.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/aura/wm_root_window_controller_aura.h" 5 #include "ash/aura/wm_root_window_controller_aura.h"
6 6
7 #include "ash/aura/wm_shelf_aura.h" 7 #include "ash/aura/wm_shelf_aura.h"
8 #include "ash/aura/wm_shell_aura.h" 8 #include "ash/aura/wm_shell_aura.h"
9 #include "ash/aura/wm_window_aura.h" 9 #include "ash/aura/wm_window_aura.h"
10 #include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h" 10 #include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void WmRootWindowControllerAura::AddObserver( 128 void WmRootWindowControllerAura::AddObserver(
129 WmRootWindowControllerObserver* observer) { 129 WmRootWindowControllerObserver* observer) {
130 observers_.AddObserver(observer); 130 observers_.AddObserver(observer);
131 } 131 }
132 132
133 void WmRootWindowControllerAura::RemoveObserver( 133 void WmRootWindowControllerAura::RemoveObserver(
134 WmRootWindowControllerObserver* observer) { 134 WmRootWindowControllerObserver* observer) {
135 observers_.RemoveObserver(observer); 135 observers_.RemoveObserver(observer);
136 } 136 }
137 137
138 void WmRootWindowControllerAura::OnFullscreenStateChanged(
139 bool is_fullscreen,
140 WmWindow* root_window) {
141 if (WmWindowAura::GetAuraWindow(root_window) !=
142 root_window_controller_->GetRootWindow())
143 return;
144
145 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_,
146 OnFullscreenStateChanged(is_fullscreen));
147 }
148
149 void WmRootWindowControllerAura::OnShelfAlignmentChanged( 138 void WmRootWindowControllerAura::OnShelfAlignmentChanged(
150 WmWindow* root_window) { 139 WmWindow* root_window) {
151 if (WmWindowAura::GetAuraWindow(root_window) != 140 if (WmWindowAura::GetAuraWindow(root_window) !=
152 root_window_controller_->GetRootWindow()) 141 root_window_controller_->GetRootWindow())
153 return; 142 return;
154 143
155 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_, 144 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_,
156 OnShelfAlignmentChanged()); 145 OnShelfAlignmentChanged());
157 } 146 }
158 147
159 void WmRootWindowControllerAura::OnDisplayAdded( 148 void WmRootWindowControllerAura::OnDisplayAdded(
160 const display::Display& display) {} 149 const display::Display& display) {}
161 150
162 void WmRootWindowControllerAura::OnDisplayRemoved( 151 void WmRootWindowControllerAura::OnDisplayRemoved(
163 const display::Display& display) {} 152 const display::Display& display) {}
164 153
165 void WmRootWindowControllerAura::OnDisplayMetricsChanged( 154 void WmRootWindowControllerAura::OnDisplayMetricsChanged(
166 const display::Display& display, 155 const display::Display& display,
167 uint32_t metrics) { 156 uint32_t metrics) {
168 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_, 157 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_,
169 OnWorkAreaChanged()); 158 OnWorkAreaChanged());
170 } 159 }
171 160
172 } // namespace ash 161 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_root_window_controller_aura.h ('k') | ash/aura/wm_shelf_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698