OLD | NEW |
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_shell_mus.h" | 5 #include "ash/mus/bridge/wm_shell_mus.h" |
6 | 6 |
7 #include "ash/common/default_accessibility_delegate.h" | 7 #include "ash/common/default_accessibility_delegate.h" |
8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
9 #include "ash/common/shell_observer.h" | 9 #include "ash/common/shell_observer.h" |
10 #include "ash/common/shell_window_ids.h" | 10 #include "ash/common/shell_window_ids.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 WmWindow* WmShellMus::GetRootWindowForNewWindows() { | 175 WmWindow* WmShellMus::GetRootWindowForNewWindows() { |
176 NOTIMPLEMENTED(); | 176 NOTIMPLEMENTED(); |
177 return root_window_controllers_[0]->GetWindow(); | 177 return root_window_controllers_[0]->GetWindow(); |
178 } | 178 } |
179 | 179 |
180 bool WmShellMus::IsForceMaximizeOnFirstRun() { | 180 bool WmShellMus::IsForceMaximizeOnFirstRun() { |
181 NOTIMPLEMENTED(); | 181 NOTIMPLEMENTED(); |
182 return false; | 182 return false; |
183 } | 183 } |
184 | 184 |
| 185 bool WmShellMus::IsPinned() { |
| 186 NOTIMPLEMENTED(); |
| 187 return false; |
| 188 } |
| 189 |
| 190 void WmShellMus::SetPinnedWindow(WmWindow* window) { |
| 191 NOTIMPLEMENTED(); |
| 192 } |
| 193 |
185 bool WmShellMus::CanShowWindowForUser(WmWindow* window) { | 194 bool WmShellMus::CanShowWindowForUser(WmWindow* window) { |
186 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
187 return true; | 196 return true; |
188 } | 197 } |
189 | 198 |
190 void WmShellMus::LockCursor() { | 199 void WmShellMus::LockCursor() { |
191 NOTIMPLEMENTED(); | 200 NOTIMPLEMENTED(); |
192 } | 201 } |
193 | 202 |
194 void WmShellMus::UnlockCursor() { | 203 void WmShellMus::UnlockCursor() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 267 } |
259 | 268 |
260 void WmShellMus::AddShellObserver(ShellObserver* observer) { | 269 void WmShellMus::AddShellObserver(ShellObserver* observer) { |
261 wm_shell_common_->AddShellObserver(observer); | 270 wm_shell_common_->AddShellObserver(observer); |
262 } | 271 } |
263 | 272 |
264 void WmShellMus::RemoveShellObserver(ShellObserver* observer) { | 273 void WmShellMus::RemoveShellObserver(ShellObserver* observer) { |
265 wm_shell_common_->RemoveShellObserver(observer); | 274 wm_shell_common_->RemoveShellObserver(observer); |
266 } | 275 } |
267 | 276 |
268 void WmShellMus::NotifyPinnedStateChanged(WmWindow* pinned_window) { | |
269 wm_shell_common_->NotifyPinnedStateChanged(pinned_window); | |
270 } | |
271 | |
272 // static | 277 // static |
273 bool WmShellMus::IsActivationParent(::mus::Window* window) { | 278 bool WmShellMus::IsActivationParent(::mus::Window* window) { |
274 return window && IsActivatableShellWindowId( | 279 return window && IsActivatableShellWindowId( |
275 WmWindowMus::Get(window)->GetShellWindowId()); | 280 WmWindowMus::Get(window)->GetShellWindowId()); |
276 } | 281 } |
277 | 282 |
278 void WmShellMus::RemoveClientObserver() { | 283 void WmShellMus::RemoveClientObserver() { |
279 if (!client_) | 284 if (!client_) |
280 return; | 285 return; |
281 | 286 |
(...skipping 13 matching lines...) Expand all Loading... |
295 OnWindowActivated(gained_active, lost_active)); | 300 OnWindowActivated(gained_active, lost_active)); |
296 } | 301 } |
297 | 302 |
298 void WmShellMus::OnWillDestroyClient(::mus::WindowTreeClient* client) { | 303 void WmShellMus::OnWillDestroyClient(::mus::WindowTreeClient* client) { |
299 DCHECK_EQ(client, client_); | 304 DCHECK_EQ(client, client_); |
300 RemoveClientObserver(); | 305 RemoveClientObserver(); |
301 } | 306 } |
302 | 307 |
303 } // namespace mus | 308 } // namespace mus |
304 } // namespace ash | 309 } // namespace ash |
OLD | NEW |